websocket
Installation
SKILL.md
WebSocket Best Practices
Connection
- Implement automatic reconnection with backoff
- Use heartbeat/ping-pong for connection health
- Handle connection state (connecting, open, closing, closed)
- Use secure WebSocket (wss://) in production
Patterns
- Use rooms/channels for topic-based messaging
- Implement pub/sub for broadcast
- Use acknowledgments for critical messages
- Use binary frames for large data
- Implement message queuing during disconnects