What problem does it solve?
PubNub-powered real-time multiplayer lobby and game-state synchronization system that coordinates room lifecycles, player presence, and cross-player communication across clients.
Core Features & Use Cases
- Initialize PubNub for gaming with presence timeout, heartbeat, reconnection, and server-side validation hooks.
- Create and join game rooms with persistent metadata, capacity checks, lobby announcements, and a multi-state lifecycle (waiting, ready, in-progress, paused, finished, cancelled).
- Real-time state synchronization using delta updates on separate channels for state, chat, and lobby; leverages presence to track joins/leaves and recovers on reconnect.
- Support spectator mode, in-game chat, and real-time leaderboards with PubNub Functions-based validation and KV-store persistence.
- Patterns and references for matchmaking, patterns, and gaming setups.
Quick Start
Create a PubNub-powered multiplayer lobby system with room management and real-time state synchronization.