title: RabbitMQ with nodejs
body: <p>Am trying to establish connection with RabbitMQ from nodejs program. But its not establishing a connection, neither throwing an error. My code is as below. Any suggestions please.</p>
  
  <pre><code>var amqp = require('amqp');
  var connection = amqp.createConnection({url:"amqp://guest:guest@localhost:15672"});
  
  connection.on('ready', function(){
  
      var q = connection.queue('jsonmsg', function(q) {
          console.log('connected');
          q.bind("#");
          q.subscribe(function (message) { 
              console.log('on connection' + message);
          });
      }); 
  });
  </code></pre>