stomp-js / stompjs

Javascript and Typescript Stomp client for Web browsers and node.js apps
Apache License 2.0
763 stars 81 forks source link

Support configurable retry policy for WebSocket reconnections #585

Open meteor199 opened 1 year ago

meteor199 commented 1 year ago

Currently stompjs does not provide configurable options for retrying WebSocket reconnections after disconnects.

It would be very helpful if stompjs could support custom retry policies through configuration options, similar to the reconnection options provided in socket.io:

https://socket.io/docs/v4/client-options/#randomizationfactor

The key options are:

With configurable retry, users can implement backoff retry, customize max intervals and attempts according to their needs.

kum-deepak commented 1 year ago

Will target for the v7.1

akaNightmare commented 2 months ago

@kum-deepak any updates?

akaNightmare commented 2 months ago

trying to pass some headers into subscribe methods

and have no luck, I assumed it should be handled by AMQ, but probably it's not working via WS connection