diff --git a/anonstream/static/anonstream.js b/anonstream/static/anonstream.js index 4b071ff..6a9c9db 100644 --- a/anonstream/static/anonstream.js +++ b/anonstream/static/anonstream.js @@ -851,6 +851,7 @@ const connect_websocket = () => { } chat_live_ball.style.borderColor = "gold"; chat_live_status.innerHTML = "Connecting to chat...···"; + ws = null; ws = new WebSocket(`ws://${document.domain}:${location.port}/live?token=${encodeURIComponent(TOKEN)}`); ws.addEventListener("open", (event) => { console.log("websocket open", event);