jeffallan avatar

Websocket Engineer

This covers the full WebSocket implementation cycle from connection handling to horizontal scaling with Redis pub/sub. It generates complete Socket.IO servers with authentication middleware, room management, and presence tracking, plus client code with exponential backoff reconnection. The workflow emphasizes testing connection behavior locally before scaling, then validating Redis adapter round-trips and sticky session configs. Useful when you need real-time features beyond simple HTTP and want battle-tested patterns for clustering, not just basic WebSocket examples. The constraints section catches common pitfalls like forgetting sticky sessions or skipping connection cleanup.

skills.sh installs
7.1K
GitHub stars
12.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add jeffallan/claude-skills --skill websocket-engineer --agent claude-code

Installs into .claude/skills of the current project.

Files

WebSocket Engineer

Core Workflow

  1. Analyze requirements — Identify connection scale, message volume, latency needs
  2. Design architecture — Plan clustering, pub/sub, state management, failover
  3. Implement — Build WebSocket server with authentication, rooms, events
  4. Validate locally — Test connection handling, auth, and room behavior before scaling (e.g., npx wscat -c ws://localhost:3000); confirm auth rejection on missing/invalid tokens, room join/leave events, and message delivery
  5. Scale — Verify Redis connection and pub/sub round-trip before enabling the adapter; configure sticky sessions and confirm with test connections across multiple instances; set up load balancing
  6. Monitor — Track connections, latency, throughput, error rates; add alerts for connection-count spikes and error-rate thresholds

Reference Guide

Load detailed guidance based on context:

Sponsors

Details

Repository
github.com/jeffallan/claude-skills
Categories
Backend & APIs, Databases

More from jeffallan/claude-skills

All 66
1payloadcms avatarpayloadpayloadcms/skillsUse when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, secur7.1Kskills.sh installs
2aws avataramazon-aurora-postgresqlaws/agent-toolkit-for-awsAmazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express c6Kskills.sh installs
3affaan-m avatarprisma-patternsaffaan-m/eccPrisma ORM patterns for TypeScript backends — schema design, query optimization, transactions, pagination, and critical traps like updateMany returning count no5.5Kskills.sh installs
4lobehub avatardrizzlelobehub/lobehubLobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction t5.5Kskills.sh installs
5apollographql avatargraphql-schemaapollographql/skillsGuide for designing GraphQL schemas following industry best practices. Use this skill when: (1) designing a new GraphQL schema or API, (2) reviewing existing sc4.3Kskills.sh installs
6dpearson2699 avatarauthenticationdpearson2699/swift-ios-skillsImplement iOS authentication flows with AuthenticationServices and LocalAuthentication. Use when building Sign in with Apple, passkey/WebAuthn registration or s4.1Kskills.sh installs