wip
This commit is contained in:
parent
bc9aec0044
commit
0a6ad0a419
2 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue