Skip to content

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

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
});