nyply
v0.0.1
Published
An extremely simplistic Request/Reply module built on top of AMQP.JS
Downloads
1
Readme
Nyply
An extremely simplistic Request/Reply module built on top of AMQP.JS
Installation
$ npm install nyply
Quick Start
var connection = amqp.createConnection({
host: 'host',
port: 5672,
login: 'login',
password: 'password'
});
connection.on('ready', function () {
var nyply = new (require('nyply'))(connection);
nyply.call('queue', { payload: 'message' }, function response(err, response) {
console.log(response);
}, 2000);
});
Running Tests
To run the test suite, first set the following enviromental variables.
- NYLOGIN The username to use in the connection
- NYPASSWORD The password to use in the connection
- NYHOST The host to use in the connection
Invoke the following command within the repo, installing the development dependencies:
$ npm install