update logging and add testing to make sure client IDs are stable

This commit is contained in:
2026-04-08 12:27:16 -05:00
parent bdbb2957c1
commit 3cff324d9d
2 changed files with 9 additions and 3 deletions
+6
View File
@@ -9,6 +9,12 @@ function test() {
type: "subscribe",
channel: "messages",
}));
setTimeout(() => {
ws.send(JSON.stringify({
type: "unsubscribe",
channel: "messages",
}));
}, 5000);
};
ws.onclose = () => {
console.log("Disconnected from server");