🔌

WebSocket Server Guide

Verified

by Community

Guides you through building WebSocket servers for real-time features like chat, notifications, and live updates. Covers connection management, authentication, room/channel patterns, heartbeats, reconnection, and scaling with Redis pub/sub.

websocketrealtimeservercommunicationscaling

WebSocket Server Guide

Build WebSocket servers for real-time communication with proper connection management and scaling patterns.

Usage

Describe your real-time requirements and this skill will guide you through building a WebSocket server.

Examples

  • "Build a WebSocket server for a real-time chat application"
  • "Implement live notifications using WebSocket with authentication"
  • "Scale WebSocket connections across multiple servers with Redis"

Guidelines

  • Implement heartbeat pings to detect dead connections
  • Authenticate connections during the WebSocket handshake
  • Use rooms or channels to group related connections
  • Implement exponential backoff for client reconnection
  • Plan for horizontal scaling with a pub/sub backend