Closed ndelanou closed 1 year ago
Fix issue #34
The reconnection delay is now computed based on the _reconnectAttempts counter.
_reconnectAttempts
The method _delayedReconnect() does not require a delay parameter anymore, since the same logic is applied in connect() and _onSocketClosed()
_delayedReconnect()
delay
connect()
_onSocketClosed()
Thanks! I thought about this problem today and here is the solution.
Added test
Great!! Thanks a lot @ndelanou !
Fix issue #34
The reconnection delay is now computed based on the
_reconnectAttempts
counter.The method
_delayedReconnect()
does not require adelay
parameter anymore, since the same logic is applied inconnect()
and_onSocketClosed()