WebSocket hub with channel-based pub/sub
Phase 0: Fix SendToChannel data race (client map iterated outside lock), add 16 test functions covering all edge cases, benchmarks, and integration tests. Coverage 88.4% -> 98.5%. go vet clean, race detector clean. Phase 1: Add HubConfig with configurable heartbeat/pong/write timeouts and OnConnect/OnDisconnect callbacks. Add ReconnectingClient with exponential backoff, max retries, and OnConnect/OnDisconnect/OnReconnect state callbacks. Full test coverage for all resilience features. Co-Authored-By: Charon <developers@lethean.io> |
||
|---|---|---|
| CLAUDE.md | ||
| FINDINGS.md | ||
| go.mod | ||
| go.sum | ||
| TODO.md | ||
| ws.go | ||
| ws_test.go | ||