Issues Websockets #48 #49 #51 e #54

This commit is contained in:
2026-01-02 13:24:20 +00:00
parent bcdf542606
commit e23ca3d1ff
5 changed files with 219 additions and 23 deletions
+6 -2
View File
@@ -18,8 +18,12 @@ const getGame = (id) => {
};
const removeGame = (id) => {
activeGames.delete(id);
console.log(`[Game State] Game removed: ${id}`);
const game = activeGames.get(id);
if (game) {
game.stopTimer();
activeGames.delete(id);
console.log(`[Game State] Game removed: ${id}`);
}
};
module.exports = {