node-stomp-client icon indicating copy to clipboard operation
node-stomp-client copied to clipboard

Heart-beat not utilized. Made my own for now.

Open ahudak opened this issue 10 years ago • 0 comments

I forked the repo here to implement a crude TCP heartbeat when connecting to an ActiveMQ server. I do not like the overall implementation/use case so I am not making a pull request, but if you would like to see it in action, checkout my fork.

var Stomp = require('stomp-client'); client = new Stomp('localhost', 61613, '', '', '1.1', undefined, undefined, '1000,1000'); // One second heartbeats.

https://github.com/ahudak/node-stomp-client.git

I found the activemq connection state in my app much easier to manage with this change now that the error handler gets called in a timely manner.

ahudak avatar Mar 13 '15 19:03 ahudak