b0o
Can't get wsLink's retryDelayMs to work
The issue arises from the way
wsLink
resets the connectAttempt
counter upon a successful connection. This make total sense. However, in my case, my WebSocket server validates a session cookie in the connect
event handler, and closes the connection on an invalid session. The connectAttempt
counter is still reset, because this is a successful connection followed immediately by a close()
.
Maybe it would make sense to only reset the connectAttempt
counter after a successful request/response from the WebSocket server.3 replies