Context: Network interruptions between the client and the server.ts WebSocket server are inevitable. Rapid, unthrottled reconnection attempts can overwhelm the server.
Tasks:
Implement an exponential backoff algorithm for the client-side socket reconnection logic.
Add jitter to the backoff calculation to prevent the "thundering herd" problem if the server restarts
Context: Network interruptions between the client and the server.ts WebSocket server are inevitable. Rapid, unthrottled reconnection attempts can overwhelm the server.
Tasks:
Implement an exponential backoff algorithm for the client-side socket reconnection logic.
Add jitter to the backoff calculation to prevent the "thundering herd" problem if the server restarts