theme_guess/backend
Gabriel Franco ea003453af feat(backend): add matchmaking queue with random mode and quit ban
Registers queue:join/queue:leave handlers that FIFO-pair waiting players,
randomly assign timeMode (1 or 2, uniform) and theme via themeIds.js, and
hand off to game/session.js's createSession. Tracks a 2-minute
matchmaking-only quit ban (in-memory, resets on restart) via onEnd's
'quit' reason, scoped to sessions this module produced. Exports
isBanned() and registerMatchmakingHandlers(), wired into index.js at
boot.

Also extends ws/registry.js with a playerId -> display name store
(registerSocket's new optional third arg, getPlayerName()) so
match:found.opponentName (and future room:joined.opponentName) can be
populated; connectionHandler.js's identify handler now passes name
through.
2026-09-10 12:15:52 -03:00
..
src feat(backend): add matchmaking queue with random mode and quit ban 2026-09-10 12:15:52 -03:00
.env.example feat(backend): add match/round session engine 2026-09-10 12:03:42 -03:00
package-lock.json feat(backend): scaffold matchmaking server project 2026-09-10 10:37:52 -03:00
package.json feat(backend): scaffold matchmaking server project 2026-09-10 10:37:52 -03:00