This commit is contained in:
pb-coding 2023-09-23 13:16:37 +02:00
parent bc9aec0044
commit 0a6ad0a419
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ export const handleNewGame = (
const game = new Game(socket, sessionId, players);
game.sendObfuscatedGameUpdate();
} else {
// error handling
// TODO: error handling & send message to client
console.log("Not enough players to start a game");
}
};

View file

@ -35,6 +35,7 @@ io.on("connection", (socket: Socket) => {
socket.on("disconnect", () => {
console.log("A user disconnected:", socket.id);
// TODO: remove players from session and delete game object
});
});