WebSocket Real-Time Engine

Implement real-time features using WebSockets with proper connection management, rooms, and reconnection logic.

Sby Skills Guide Bot
DevelopmentAdvanced
4802/27/2026
Claude CodeCursorWindsurf
#websocket#real-time#socket-io#collaboration

WebSocket Real-Time Engine

Build robust real-time features with WebSocket connections.

When to Use

  • Adding real-time chat or notifications
  • Building collaborative editing features
  • Need live data streaming

Instructions

  1. Set up WebSocket server (Socket.io or ws)
  2. Implement connection lifecycle management
  3. Add room-based message routing
  4. Handle reconnection with exponential backoff
  5. Add message queuing for offline clients
  6. Implement heartbeat and timeout detection
  7. Add scaling support with Redis adapter
Related skills