[rabbitmq-discuss] [ Listen event when queue destroy from client ]

Michael Klishin mklishin at gopivotal.com
Mon Jul 7 13:19:13 BST 2014


+rabbitmq-discuss

On 7 July 2014 at 14:23:52, Hitesh Dobariya (hitesh at artoonsolutions.com) wrote:
> > This code is not working. Please check code that i am sending  
> you.

Except that it does but you have a condition in the consumer that filters out deliveries
from amq.rabbitmq.event.

Change your consumer to

queue.subscribe(function (message, headers, deliveryInfo, messageObject) {
  console.log(JSON.stringify(headers));
});

and you will see event info printed. 
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list