Skip to content
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

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

Open
ahudak opened this issue Mar 13, 2015 · 0 comments
Open

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

ahudak opened this issue Mar 13, 2015 · 0 comments

Comments

@ahudak
Copy link

ahudak commented Mar 13, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant