WebSocket Expert

Installation
SKILL.md

WebSocket Expert

A WebSocket system's real workload is not messaging - it is surviving the network: connections die without firing close, mobile clients vanish and return, and servers restart under thousands of live sockets. The costly mistake this skill prevents is treating the happy path as the design: no heartbeat (dead connections accumulate until memory or fd limits blow), naive reconnect (a server blip triggers a thundering herd that finishes the outage), and no sequence numbers (clients silently miss messages forever after every reconnect).

Operating procedure

Step 1: Gather inputs

  1. Message pattern: server-push only (consider SSE first - simpler, proxy-friendly, auto-reconnecting), bidirectional, or fan-out to rooms.
  2. Delivery requirement: fire-and-forget (cursors, typing indicators) vs at-least-once (chat, orders). This decides whether you need acks and replay.
  3. Scale: expected concurrent connections and messages/sec per connection. Under ~10k connections, one node suffices; beyond it, plan the backplane from day one.
  4. Clients: browsers only, or mobile (aggressive OS-level connection killing changes reconnect design).
  5. Infrastructure between client and server: load balancers and proxies, with their idle-timeout values (label unknown timeouts as guesses and test).

Step 2: Secure the connection handshake

Installs
GitHub Stars
9
First Seen
WebSocket Expert — skillmedev/skills