postwait / node-amqp

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

Subscribe only Latest Messages from Queue #428

Open SantoshSKhavekar opened 8 years ago

SantoshSKhavekar commented 8 years ago

Hi,

I wanted to know that how to subscribe only latest message, if there are failure messages in queue i don't want subscribe those messages .

I did {ack: true, prefetchCount: 0} after task completion i will send ack.

Can some one help me.

Thank in advance.