0.0.1 • Published 11 years ago

nyply v0.0.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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