jrp
v1.0.1
Published
A wrapper for the jackrabbit publish module
Downloads
5
Readme
jrp - Jack Rabbit Publish
This is a wrapper module over the RabbitMQ Publish method for Request/Response message pattern.
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