removed console ws closed warning on event.wasClean
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-03-18 22:20:51 -04:00
parent 3a87a17017
commit 4f076165ef

View File

@@ -11,7 +11,9 @@
window.dispatchEvent(new CustomEvent('room:' + data.type, { detail: data })); window.dispatchEvent(new CustomEvent('room:' + data.type, { detail: data }));
}; };
ws.onclose = function () { ws.onclose = function (event) {
console.warn('Room WebSocket closed'); if (!event.wasClean) {
console.warn('Room WebSocket closed unexpectedly');
}
}; };
}()); }());