js_forbidden_network
fetch, XMLHttpRequest, WebSocket, EventSource, RTCPeerConnection, StreamerbotClient and navigator.sendBeacon are not allowed: the connection goes only through widget.js.
- Severity: Error: it blocks publishing the version.
- Where: script.js
How to fix it
Section titled “How to fix it”What you need arrives with Streamer.bot events: Widget.on or Widget.streamerbot.on. To run something, declare an action and use Widget.streamerbot.doAction.
new WebSocket("wss://example.com/api");Widget.on("Twitch.Follow", ({ user }) => { // reacciona al evento en vez de pedirlo por red});