websocket-realtime-testing
Installation
SKILL.md
WebSocket & Real-Time Testing
Long-lived, stateful, bidirectional connections break the assumptions of request/response testing.
Lifecycle checklist
| Phase | Verify |
|---|---|
| Handshake | Upgrade succeeds; Origin validated (CSWSH); auth via token/cookie; wrong/expired token → close code 1008/4401 |
| Open | Server hello/ack; subscribe to channel; permissions per channel |
| Messages | Schema validation; max frame size; binary/text; unicode; ordering per key; duplicates |
| Heartbeat | Ping/pong; idle timeout; proxy/LB timeout (60s traps) |
| Reconnect | Exponential backoff + jitter; resume with last-event-id/offset; no duplicate or lost messages |
| Close | Graceful close codes; server-initiated close; resource cleanup |
| Errors | Malformed JSON; oversized frame; unknown event; flood → rate limit, not crash |