davinkevin / AngularStompDK

Angular service to communicate to Stomp-Websocket
http://davinkevin.github.io/AngularStompDK/
Apache License 2.0
36 stars 12 forks source link

Is it possible to change the auto reconnect behaviour? #35

Closed t-medina closed 8 years ago

t-medina commented 8 years ago

For what I can see in the library, all I can control is the waiting time between two tries of reconnection; but I actually would like to disable "auto reconnect" altogether, and be in control of what happens after a disconnection.

Thanks in advance.

davinkevin commented 8 years ago

I think this could be part of the configuration, with the default timing between two connection set to -1 to disable auto-reconnect.

I have another request about the auto-reconnect, so I think, if no one proprose a PR, I will do both of them in same time... but I don't know when, sorry.

Feel free to propose if you want 👍

davinkevin commented 8 years ago

I've made some modification on master to allow disabling the auto-reconnect function. For that, you have to set a timeOut value to less than 0.

Could you test and say if it's ok for you like that ? If yes, I'll do a bump / release.

😄

t-medina commented 8 years ago

Great! I'll test it and I'll let you know. Thanks a lot :smile:

davinkevin commented 8 years ago

Done in 0.8.2, open an issue if not working as expected