From df0b1f3573561871f8f08c35f4e8e6c4b895d7eb Mon Sep 17 00:00:00 2001 From: defautluser0 Date: Thu, 15 Jan 2026 17:41:24 +0100 Subject: [PATCH] make it not refill messages --- src/ws/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ws/index.ts b/src/ws/index.ts index d36b635..7a3e5cc 100644 --- a/src/ws/index.ts +++ b/src/ws/index.ts @@ -54,6 +54,11 @@ const onclose = () => { console.log("ws disconnected. reconnecting"); ws = new WebSocket("ws://localhost/ws"); ws.onopen = () => { + messages = []; + users = []; + queue = new Array(6).fill(null); + dirty = true; + console.log("opened websocket!"); if (!token) { ws.send(JSON.stringify({