Patterns for building resilient WebSocket connections that handle network drops gracefully.
Building Hoop Almanac's real-time draft system taught me hard lessons about WebSocket reliability.
Users on mobile networks would disconnect frequently. Our naive reconnection logic created cascading failures—duplicate events, out-of-sync state, and confused users.
The jitter is crucial. Without it, all disconnected clients reconnect simultaneously, overwhelming the server.