This commit is contained in:
MathMan05 2024-08-11 17:33:49 -05:00
parent f37a930884
commit 6a99c806a5
2 changed files with 2 additions and 0 deletions

View file

@ -194,6 +194,7 @@ class Localuser {
this.handleEvent(temp);
});
this.ws.addEventListener("close", event => {
this.ws = undefined;
console.log("WebSocket closed with code " + event.code);
this.unload();
document.getElementById("loading").classList.remove("doneloading");