Refactor SocketUser class location and update imports; add new ClientHandler for game management

This commit is contained in:
2025-03-27 22:50:08 +01:00
parent 031fd65332
commit f4cfe1e111
8 changed files with 51 additions and 8 deletions

View File

@@ -15,12 +15,12 @@ class ServerConnectionManager {
this.socket.on("connect_error", (error) => {
console.log(error);
window.location.pathname = "/dashboard";
window.location.pathname = "/dashboard/lobby";
});
this.socket.on("disconnect", () => {
console.log("Die verbindung wurde unterbrochen!");
window.location.pathname = "/dashboard";
window.location.pathname = "/dashboard/lobby";
});
}
}