1.0.1 • Published 9 years ago

jrp v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

jrp - Jack Rabbit Publish

This is a wrapper module over the RabbitMQ Publish method for Request/Response message pattern.

build status

Usage

var search = jrp({
  server: 'amqp://localhost',
  queue: 'plasticman.search'
});

search.publish({
  index: 'myapp', type: 'error', q: 'Beep '}, function(err, results){
  console.log(results);
});

The jrp constructor takes an object that contians a server and queue node, these nodes connect the client to the rabbitmq, the server node must have all connection info embedded: ie. amqp://user:pwd@server%f2/vhost

Install

npm install jrp

Test

npm test

License

MIT

Contributions

see CONTRIBUTING.md

Thanks

  • JackRabbit Module
  • NodeJS