node-amqp icon indicating copy to clipboard operation
node-amqp copied to clipboard

Exchange and Queue callbacks aren't executed

Open rshelley opened this issue 13 years ago • 2 comments

When calling "connection.exchange(...)" or "connection.queue(...)" the callback isn't being executed. I can profile the amqp.js file and see it in the Exchange and Queue objects, but it's not being executed. It's only invoked if the Exchange or Queue names already exist.

rshelley avatar Oct 05 '11 00:10 rshelley

I can confirm this as well.

FYI: To get callbacks to work, I had to use the .addListener method via chaining.

e.g. connection.exchange(...).addListener('error",logError).addListener('open',doStuff).

esk525 avatar Dec 08 '11 01:12 esk525

Is this fixed?

a--hoang avatar Dec 01 '16 22:12 a--hoang