websocket-engineer

websocket engineer

jeffallan 11k ↓ 5.2k MIT updated 2mo ago
Claude Code
View source ↗

What it does

  • Use sticky sessions for load balancing (WebSocket connections are stateful — requests must route to the same server instance)
  • Implement heartbeat/ping-pong to detect dead connections (TCP keepalive alone is insufficient)
  • Use rooms/namespaces for message scoping rather than filtering in application logic
  • Queue messages during disconnection windows to avoid silent data loss
  • Plan connection limits per instance before scaling horizontally
  • Store large state in memory without a clustering strategy (use Redis or an external store)
  • Mix WebSocket and HTTP on the same port without explicit upgrade handling

Requirements & configuration

  • 1. Analyze requirements — Identify connection scale, message volume, latency needs
  • const token = socket.handshake.auth.token;
  • if (!token) return next(new Error("Authentication required"));
  • socket.data.user = jwt.verify(token, process.env.JWTSECRET);
  • next(new Error("Invalid token"));

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

websocket engineer

Source

Repository: https://github.com/jeffallan/claude-skills

websocket-engineer FAQ

What does the websocket-engineer skill do?

Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management. Use sticky sessions for load balancing (WebSocket connections are stateful — requests must route to the same server instance) Implement heartbeat/ping-pong to detect dead connections (TCP keepalive alone is insufficient)

What does websocket-engineer require?

1. Analyze requirements — Identify connection scale, message volume, latency needs const token = socket.handshake.auth.token; if (!token) return next(new Error("Authentication required")); socket.data.user = jwt.verify(token, process.env.JWTSECRET); next(new Error("Invalid token"));

How do I install websocket-engineer?

Run: npx -y skills add https://github.com/jeffallan/claude-skills --skill websocket-engineer --agent claude-code — the source lives at github.com/jeffallan/claude-skills.

Maintain websocket-engineer?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

websocket-engineer on getagentictools
[![websocket-engineer on getagentictools](https://getagentictools.com/badge/skills/jeffallan-claude-skills-websocket-engineer.svg)](https://getagentictools.com/skills/jeffallan-claude-skills-websocket-engineer?ref=badge)
npx agentictools info skills/jeffallan-claude-skills-websocket-engineer

The second line is the CLI lookup for this page — handy in READMEs and docs.