node-stomp-client
node-stomp-client copied to clipboard
Error Callback
How does the client get notified, when the server connection goes down? I have defined the "errorCallback" in:
stomp.connect([callback, [errorCallback]])
but it never gets called if the server goes down.
Have you tried to listen for 'disconnect' event?
I've run into this same problem. My current workaround is to directly access the stream within the stomp client and bind to the 'end' event.
client.stream.on('end', errorCallback);