-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconnect handling #2
Comments
Hi, Thank you @ib1987 I think one way to do it is to pass 'subscribe' to |
I had the same problem. This was my old code, where after reconnection the subscriptions were lost: stomp.startConnect().then(() => {
stomp.done('init')
stomp.subscribe( ... )
}) And this is the new working code: The subscriptions are renewed each time an let originalOnConnect = stomp.onConnect
stomp.onConnect = (frame: any) => {
originalOnConnect(frame)
stomp.subscribe( ... )
}
stomp.startConnect().then(() => {
stomp.done('init')
})` Feature request: It would be great if the library could manage the subscriptions automatically 😊 |
Hi @devsullo,
this module is really useful, thanks for it.
Please help me, how can i handle the reconnect situation?
My client lifecycle:
--Ben
The text was updated successfully, but these errors were encountered: