wscat / websocat 으로 수동 test
두 CLI 도구가 수동 WebSocket test 우세. wscat (Node.js) 가 가장 친절. websocat (Rust) 가 가장 강력 — custom header, TLS, subprotocol, binary framing 지원. 둘 다 도구함에 보유.
k6 로 load test
k6 가 first-class WebSocket 모듈 보유. JS test 짜고, virtual user ramp up, 수천 동시 connection 서버에 push. 결과가 connection rate, message throughput, error rate, latency percentile 커버. Production 변경 전마다 실행.
Production 에 monitor 할 다섯 metric
활성 connection (수, 서버별). 초당 message (in/out). Connection duration 분포. Close-code 히스토그램 (1006 spike = 문제). Heartbeat round-trip latency p95. Prometheus 또는 stack 에 wire. 절대 threshold 가 아니라 anomaly 에 alarm.