Open kezz opened 1 year ago
Quite simple, just recreate the websocket and reinitialize it whenever it closes. Unsure if this will have any janky side-effects, but seems to work okay.
Closes #165.
Shouldn't this need some sort of delay or debounce? Wouldn't it start spamming requests?
I agree with rymiel, a set timeout or even better, exceptional backoff
can use https://www.npmjs.com/package/exponential-backoff
Quite simple, just recreate the websocket and reinitialize it whenever it closes. Unsure if this will have any janky side-effects, but seems to work okay.
Closes #165.