Agent skill · software engineering · aj-geddes

websocket-implementation

Implement real-time bidirectional communication with WebSockets including connection management, message routing, and scaling. Use when building real-time features, chat systems, live notifications, or collaborative applications.

Why this skill is useful

Provides specific implementation patterns and best practices for WebSocket systems that the AI wouldn't reliably generate on its own.

What it needs

Requires express, redis, socket.io installed locally. About 1k tokens when loaded. Last updated 2026-03-04. 307 stars on the source repository.

What this skill does

WebSocket Implementation Table of Contents Overview When to Use Quick Start Reference Guides Best Practices Overview Build scalable WebSocket systems for real-time communication with proper connection management, message routing, error handling, and horizontal scaling support. When to Use Building real-time chat and messaging Implementing live notifications Creating collaborative editing tools Broadcasting live data updates Building real-time dashboards Streaming events to clients Live multiplayer games Quick Start Minimal working example: Reference Guides Detailed implementations in the references/ directory: Guide Contents --- --- Node.js WebSocket Server (Socket.IO) Node.js WebSocket Server (Socket.IO) Browser WebSocket Client Browser WebSocket Client Python WebSocket Server (aiohttp) Python WebSocket Server (aiohttp) Message Types and Protocols Message Types and Protocols Scaling with Redis Scaling with Redis Best Practices ✅ DO Implement proper authentication Handle reconnection gracefully Manage rooms/channels effectively Persist messages appropriately Monitor active connections Implement presence features Use Redis for scaling Add message acknowledgment Implement rate limiting Handle errors properly ❌ DON'T Send unencrypted sensitive data Keep unlimited message history in memory Allow arbitrary room/channel creation Forget to clean up disconnected connections Send large messages frequently Ignore network failures Store passwords in messages Skip authentication/authorization Create unbounded growth of connections Ignore scalability from day one

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aj-geddes/websocket-implementation

View the source on GitHub

Browse the @skills marketplace