web_socket_client
web_socket_client copied to clipboard
feat: Need a way to exit the backoff
Description
The backoff strategy is great but it keeps trying and trying. I need a way to stop trying after a period of time so I can force create a new connection. I work with a server pool where a new connection to another server could be possible if current one is not responding.
Requirements
- [ ] A way to exit backoff and run custom logic when it happens.
Additional Context
It could be a callback, or a timeout param for the backoff that can be specified and after that connection emits a disconnection event or something.