Back to portfolio

Titik Pintar, 2020–22. Designed and implemented

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.

Live roomstate, answers, scoresPlayer 1Player 2Player 3Player 4Player 5WebSocket, with reconnect handling

Swipe to see the full diagram

Players
up to 5 connected per game
Race conditions
resolved to the millisecond
Recovers
reconnects and disconnects