jrp

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jrp

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • twilson63