A real-time multiplayer quiz over WebSockets
I built the WebSocket backend for full multiplayer gameplay in a quiz: live rooms for up to 5 players, real-time scoring, room-state synchronization, and reconnect and disconnect handling. When players act at the same moment, it resolves the race condition to the millisecond, so it knows who acted first.
Swipe to see the full diagram
- Players
- up to 5 connected per game
- Race conditions
- resolved to the millisecond
- Recovers
- reconnects and disconnects