web_socket_client icon indicating copy to clipboard operation
web_socket_client copied to clipboard

feat: Need a way to exit the backoff

Open BirjuVachhani opened this issue 9 months ago • 0 comments

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.

BirjuVachhani avatar Apr 07 '25 11:04 BirjuVachhani