example-connection.coffee | |
---|---|
AmqpDsl = require 'amqp-dsl'
AmqpDsl | |
First we log in, here the list of the available parameters and their default value | .login(
login: 'user'
password: 'password'
host: 'localhost'
)
|
We could do something else like creating | .connect((err, amqp) ->
if err
throw err
return
|
| console.log 'We are connected !'
)
|