Closed sakthig closed 8 years ago
Right now, the connection is launched automatically after the service is created (in constructor). This could be a problem for what you are asking. But, you can access the promise
used during the connection process https://github.com/davinkevin/AngularStompDK/blob/master/core/service.js#L39
But, Stomp can fire the connection callback and the disconnect callback, so I don't think this will work well with the reject / resolve on the same promise.
Could you show in this issue what you would like to see in term of API in AngularStompDK to achieve this ? I would like to understand what is your need.
Thanks
Below are the issues i am facing, not sure if it has to do with AngularStompDK.
Which version do you use ?
Normaly, all the subscription shoud be 'replayed' after 5 seconds by defaut. Discussion about this in the issue #13 and present in https://github.com/davinkevin/AngularStompDK/blob/master/core/service.js#L34
Maybe you encounter an issue with the auto-reconnect method...
You can see an example of app doing reconnection automatically, because connection fail or because server cut the connection.
https://github.com/davinkevin/spring-websocket-backend
If you click "Loose connection from server", the system will automatically relaunch all subscription registered in AngularStompDK.
Thanks for the replies. This issue does not seem to be present in latest version.
Sorry for not checking the latest version in first place and troubling you :smile:
Thanks
😄
I am using ngStompProvider to start the websocket connection, but it is not returning any promise. Is there a callback or a promise which can be used in the event on websocket reconnection.