What problem does it solve? Building real-time features like chat, notifications, and live presence with Socket.IO involves tricky edge cases: unauthenticated connections, duplicate messages across tabs, inaccurate online status, and reconnect storms. This Skill provides proven patterns and type-safe code templates to implement these features correctly the first time. ## Core Features & Use Cases - Type-Safe Server Setup: Strictly typed Server-to-Client and Client-to-Server event interfaces, plus JWT/cookie authentication middleware at the handshake stage. - Rooms & Reliable Delivery: User-specific room patterns (user:${userId}), conversation channels, and acknowledgement callbacks for confirmed message persistence. - Presence & Typing Indicators: Multi-tab aware online/offline tracking using per-user socket counts, plus debounced typing broadcasts. - React Client & Scaling: Singleton socket hook pattern to prevent reconnect loops, heartbeat configuration, CORS hardening, and Redis adapter clustering for multi-node deployments. - Use Case: When adding a live chat feature to an Express and React app, use this Skill to scaffold the authenticated Socket.IO server, room routing, presence tracking, and the React connection hook. ## Quick Start Ask the AI to implement a Socket.IO server with JWT authentication, conversation rooms, and online presence tracking for an Express and React chat app.