What problem does it solve?
This Skill helps you choose and implement reliable real-time communication patterns so your app can deliver live updates (messaging, events, collaboration, presence) without fragile networking or scaling surprises.
Core Features & Use Cases
- Transport decisioning (SSE vs WebSocket): Pick the right mechanism based on one-way vs bidirectional needs, reconnection behavior, and performance characteristics.
- Production-ready WebSocket patterns: Include authentication, room-based pub/sub, heartbeat/ping, and safe cross-instance delivery.
- Collaboration with CRDTs: Use CRDT models (e.g., Yjs/Automerge) for multi-user editing with conflict-free merges and presence awareness.
- Presence + TTL: Implement typing/online indicators backed by TTL to avoid ghost users.
- Backpressure and scalability: Handle slow clients and scale fan-out using Redis pub/sub (and patterns for larger deployments).
Quick Start
Ask the AI to design a WebSocket-based real-time room system with Redis pub/sub, JWT authentication on connection, presence TTL heartbeats, and backpressure handling for slow clients.