title: Can I specify RabbitMQ credentials in node.js?
body: <p>I started to use rabbit.js to connect to RabbitMQ from a node.js application.</p>
  
  <p>I'm blocked at:</p>
  
  <blockquote>
    <p>Error: Channel closed by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED -operation not permitted on the default exchange"<br>
    &nbsp; &nbsp; at Channel.C.accept (/.../rabbit.js/node_modules/amqplib/lib/channel.js:398:24)<br>
    &nbsp; &nbsp; at Connection.mainAccept [as accept] (/.../rabbit.js/node_modules/amqplib/lib/connection.js:63:33)<br>
    &nbsp; &nbsp; at Socket.go (/.../rabbit.js/node_modules/amqplib/lib/connection.js:448:48)<br>
    &nbsp; &nbsp; at Socket.EventEmitter.emit (events.js:92:17)<br>
    ...</p>
  </blockquote>
  
  <p>which is expected, since the instance of RabbitMQ I use is configured to require the publishers and subscribers to provide credentials before being able to use the message queue, and guest account is disabled.</p>
  
  <p><a href="http://www.squaremobius.net/rabbit.js/">The official documentation of rabbit.js</a> has no mention of credentials. Google searches for “rabbit.js specify credentials” and “rabbit.js login password” were inconclusive.</p>
  
  <p>Are credentials supported by rabbit.js? If not, what other RabbitMQ clients for node.js support them?</p>