Closed singpolyma-shopify closed 5 years ago
After more testing... reconnects seem to "just work" so long as an error callback is set on the client.
But seems like a back-off algorithm would be nice to have with this. Otherwise it would be hard to make multiple threads know that there was a disconnection and to wait before trying to do something.
If the socket connection terminates, it looks like the socket loop will terminate but not be re-opened by
ensure_open
... what is the right way to handle reconnects?