title: Method to check the existence of a Queue in RabbitMQ using node amqp library
body: <p>We are trying to build a chat application with nodejs , rabbitmq and mongodb. For faster delivery of messages , we are using rabbitmq . Since I am new to this concept, if anybody can, kindly help me out. I am using the node amqp module to connect to the rabbitmq server(<a href="https://www.npmjs.org/package/amqp" rel="nofollow">https://www.npmjs.org/package/amqp</a>) .</p>
  
  <p>I am declaring an exchange as given below :</p>
  
  <p>var amqp = require('amqp');var amqpconnection = amqp.createConnection({host: 'localhost'});var exchange = amqpconnection.exchange('Exchange',{confirm:true,type:"direct", durable:true, autoDelete:false},function (exchange){});</p>
  
  <p>I am publishing a message using the below method :</p>
  
  <p>exchange.publish('receiver_queue', message ,{persistent: true,mandatory:true},function(data){console.log("Message Published");console.log(data);});</p>
  
  <p>My question is , when I am publishing to a queue that already exists , in the publish callback , we get a 'false' response but when I am publishing to a queue that doesn't exist at all , in the publish callback , still we get a 'false' response ; Why is it so ? Is there any method by which I can check whether a queue exists before publishing to it ?</p>