feat: Implement game and server persistence using Redis and file storage, and add a collapsible, resizable card preview sidebar to the game view.

This commit is contained in:
2025-12-18 17:40:36 +01:00
parent a2a45a995c
commit 842beae419
16 changed files with 10436 additions and 300 deletions

View File

@@ -544,6 +544,17 @@ io.on('connection', (socket) => {
}
});
socket.on('game_strict_action', ({ action }) => {
const context = getContext();
if (!context) return;
const { room, player } = context;
const game = gameManager.handleStrictAction(room.id, action, player.id);
if (game) {
io.to(room.id).emit('game_update', game);
}
});
socket.on('disconnect', () => {
console.log('User disconnected', socket.id);