amqp-sugar
v0.0.8
Published
amqp libray with some sugar syntax
Downloads
2
Maintainers
Readme
amqp-sugar [ Simply in development, for fun]
amqp libray with some sugar syntax
Installation
$ npm install --save amqp-sugar
Usage
var = require('amqp-sugar');
var amqpSugar = new AmqpSugar();
var queueDurable = {
durable: true
};
amqpSugar.connect('amqp://user:password@host').then(function() {
amqpSugar.listenToQueue('myQueue', queueDurable, function(message) {
amqpSugar.sendToQueue('myQueue', message);
});
});
License
MIT © Marvin FRACHET, Sébastien DEZ, Benoit GAYARD, Bastien LORON