easternbloc / node-stomp-client

A STOMP client for Node.js
Other
93 stars 47 forks source link

Cannot see reconnect event #43

Closed dev0x10 closed 9 years ago

dev0x10 commented 9 years ago

I'm testing reconnection capability but I couldn't see the reconnection after I restart my ActiveMQ server. Here is my code:

var activemqClient = new Stomp(
  Config.get('ActiveMQ.host'), Config.get('ActiveMQ.port'),
  Config.get('ActiveMQ.username'), Config.get('ActiveMQ.password'),
  '1.0', null, {'retries':10, 'delay':3}
);

activemqClient.on('reconnect', function () {
  logger.info('ActiveMQ reconnected successfully');
});

On the documentation, Stomp parameters missing virtualHost as I see inside client.js.

function StompClient(address, port, user, pass, protocolVersion, vhost, reconnectOpts) {...}
easternbloc commented 9 years ago

@dev0x10 I'm afraid I don't have time to look into this right now. If you get that time and want to issue a PR I'm more than happy to take a look.

Cheers.

dev0x10 commented 9 years ago

@easternbloc okay i will take a look and issue a PR if necessary. Thanks!