Description
Introduce a WebSocket gateway so that clients receive real-time updates during an active puzzle session — hint reveals, score changes, time warnings, and completion events — without polling. This dramatically improves the game feel and sets the foundation for future real-time multiplayer or live leaderboard features.
Acceptance Criteria
Description
Introduce a WebSocket gateway so that clients receive real-time updates during an active puzzle session — hint reveals, score changes, time warnings, and completion events — without polling. This dramatically improves the game feel and sets the foundation for future real-time multiplayer or live leaderboard features.
Acceptance Criteria
@WebSocketGatewayis configured undersrc/gateway/session:joinedevent is emitted when a player starts a sessionsession:score_updateevent is emitted whenever score changessession:hint_revealedevent is emitted when a hint is requestedsession:completedevent is emitted with final score on puzzle solvesession:time_warningevent fires at configurable time thresholds