postwait / node-amqp

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

Is there a way to check queue size? #336

Closed crzidea closed 10 years ago

crzidea commented 10 years ago

Checking queue size and not consume messages, like this. I just need a node-amqp version.

crzidea commented 10 years ago

Got it! closed.

soichih commented 5 years ago

This would do

    acon.queue('myqueue', {passive: true}, (q, message_count, consumer_count)=>{
        console.log("message_count:"+message_count);
    });