This pull request adds a maxReconnectAttempts option which controls the maximum number of reconnection attempts ReconnectingWebSocket will make before giving up.
This will allow users of this library to use short reconnection intervals without the risk of being smashed by potentially tens of thousands of clients trying to reconnect forever in case the WebSocket server goes down.
This pull request adds a
maxReconnectAttempts
option which controls the maximum number of reconnection attemptsReconnectingWebSocket
will make before giving up.This will allow users of this library to use short reconnection intervals without the risk of being smashed by potentially tens of thousands of clients trying to reconnect forever in case the WebSocket server goes down.