stomp-js
stomp-js copied to clipboard
Does it support reconnect automatically
Hi,All: I'm using activeMQ and this client, but time to time, I found that the client lost the connection without any notification, and I checked activeMQ doc ,it does support the reconnection,http://activemq.apache.org/how-can-i-support-auto-reconnection.html, but I did not see this feature in the nodejs client? Or there is some way that I don't know, thanks in advance.
I was running into this exact same thing with ActiveMQ...especially using SSL. I tried a few things like using timeout/keepAlive in the connection setup, but that didn't work. I did not try the failover setting the website recommends.
I just made a pull request, this has my update to emit a "disconnected" event which I can then catch in my code and then just reconnect. I am sure there is a better way, but this did get the job done for me.
Hi,Dan: Thank you very much, I'll try this approach and update to this thread. thanks for sharing.
Neo
On Tue, Dec 10, 2013 at 12:34 AM, Dan Hunt [email protected] wrote:
I was running into this exact same thing with ActiveMQ...especially using SSL. I tried a few things like using timeout/keepAlive in the connection setup, but that didn't work. I did not try the failover setting the website recommends.
I just made a pull request, this has my update to emit a "disconnected" event which I can then catch in my code and then just reconnect. I am sure there is a better way, but this did get the job done for me.
— Reply to this email directly or view it on GitHubhttps://github.com/benjaminws/stomp-js/issues/30#issuecomment-30147215 .
Any idea when this pull request might get included?
Any update on this?