fix(game): fix kickPlayer event to include gameId and improve reset message on player kick

This commit is contained in:
Ralex
2025-10-26 11:32:01 +01:00
parent ba29466c69
commit 2e645ae9d5
7 changed files with 18 additions and 15 deletions

View File

@@ -104,8 +104,8 @@ io.on("connection", (socket) => {
withGame(gameId, socket, (game) => game.join(socket, data.username))
)
socket.on("manager:kickPlayer", ({ gameId, data }) =>
withGame(gameId, socket, (game) => game.kickPlayer(socket, data.playerId))
socket.on("manager:kickPlayer", ({ gameId, playerId }) =>
withGame(gameId, socket, (game) => game.kickPlayer(socket, playerId))
)
socket.on("manager:startGame", ({ gameId }) =>