SKILL.md
414 lines · 1,566 words
WebSocket Engineer
Purpose
Design and implement real-time communication systems using WebSockets and related technologies. This skill covers protocol fundamentals, architecture patterns, scaling strategies, and the decision framework for choosing between real-time technologies.
Technology Selection
Decision Matrix
NEED TECHNOLOGY
-----------------------------------------------------------
Unidirectional (server -> client) Server-Sent Events (SSE)
Bidirectional, simple Native WebSocket
Bidirectional + features Socket.IO
High-frequency data (gaming) WebSocket + binary
Occasional updates HTTP polling / long-polling
SSE vs WebSocket:
SSE:
+ Simple (just HTTP)
+ Auto-reconnection built in
+ Works through proxies/firewalls easily
+ Event ID for resuming
# ... (condensed) ...
+ Acknowledgments (request-reply)
+ Binary support
- Additional library dependency
- Larger payload (protocol overhead)
- Not a standard protocol