What problem does it solve? Building collaborative features like live cursors, chat, and multiplayer rooms requires handling connection lifecycles, message protocols, reconnection, and horizontal scaling, which is error-prone to implement from scratch. ## Core Features & Use Cases - WebSocket Server Setup: Bun native WebSocket server with authentication middleware, heartbeat, and connection lifecycle handlers. - Rooms, Presence & Diff Sync: RoomManager for membership and broadcasting, presence tracking with cursor positions, and diff-based synchronization for collaborative editing. - Scaling & Reconnection: Redis pub/sub adapter for multi-instance broadcasting and client-side reconnection with exponential backoff. - Use Case: You are building a collaborative whiteboard. Use this Skill to set up the WebSocket server, broadcast shape diffs and cursor updates to room members, and scale across instances with Redis. ## Quick Start Ask the agent to build a real-time chat or collaborative editing backend with WebSocket rooms, presence, and reconnection handling using this realtime skill.