postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 358 forks source link

Problem with noDeclare and confirm #438

Open prih opened 8 years ago

prih commented 8 years ago

if connect to exchange with this options: noDeclare: true, confirm: true we have problem with Exchange.prototype._onMethod

first run case methods.channelOpenOk and after this run case methods.confirmSelectOk and emit event 'open' and call callback

but if confirm: true we need to wait case methods.confirmSelectOk and after this call callback.