postwait / node-amqp

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

assert Queue callback is not working #391

Open ghost opened 9 years ago

ghost commented 9 years ago

I am using amqplib to connect RabbitMQ in node. I have struck into the below questions.

1) How to check whether a queue having consumer key? 2) How to check whether a message deliver to particular queue?

We tried the below code to get consumer count. But the callback is not working.

assertQueue([queue, [options, [function(err, ok) {...}]]])

{ queue: 'foobar', messageCount: 0, consumerCount: 0 }

Amqplib Version : amqplib@0.3.2 Node Version : v0.10.28