postwait / node-amqp

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

Event ready re triggering #346

Open majimboo opened 10 years ago

majimboo commented 10 years ago

Is it normal behaviour that every time I publish to the queue, the ready event gets fired afterwards?

Pseudo:

is ready
received
is ready
Amberlamps commented 10 years ago

It might occur when you try to bind a queue to an exchange, that is not ready yet. Connect to the exchange before binding a queue to it.