4 ms·
> browsers implemented exponential back off Browsers do not have any native reconnect behavior for WebSockets. You have to implement reconnect in your applicat
by clarkmoody 11y ago
> browsers implemented exponential back off
Browsers do not have any native reconnect behavior for WebSockets. You have to implement reconnect in your application, which usually means exponential falloff. There are a few open-source implementations of this very feature.
Since you control the reconnect behavior, you could have clients wait a random amount of time from 1-5s before attempting the first connection. That way your reconnect storm is spread uniformly over a broader time frame.