You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to run arbitrary user callbacks at the time when the minUptime check succeeds. Currently it only resets the retrycount, but as a user I would like to do things when the websocket becomes considered stable.
The callback should be able to know the retrycount value (either get it as an argument, or be called before the reset) to differentiate between normal connections that become stable, and reconnections after failures.
Right now the workaround is to call setTimeout on each 'open' event with the same delay and handle the cancelling of tasks manually.
The text was updated successfully, but these errors were encountered:
It would be nice to be able to run arbitrary user callbacks at the time when the minUptime check succeeds. Currently it only resets the retrycount, but as a user I would like to do things when the websocket becomes considered stable.
The callback should be able to know the retrycount value (either get it as an argument, or be called before the reset) to differentiate between normal connections that become stable, and reconnections after failures.
Right now the workaround is to call setTimeout on each 'open' event with the same delay and handle the cancelling of tasks manually.
The text was updated successfully, but these errors were encountered: