rabbit-pie

0.0.4 • Public • Published

#rabbitpie

library for making amqp as easy as pie in nodejs

##Example

rabbitPie.connect().then(function (connection) {
    return connection.declareExchange('testing');
}).then(function (exchange) {
    return exchange.createQueue();
}).then(function (queue) {
    return queue.bind('#'); //returns the queue again for easy chaining
}).then(function (queue) {
    queue.on('message', function recievedMessage(message, headers, deliveryInfo) {
        console.log(arguments);
    });
});

Readme

Keywords

none

Package Sidebar

Install

npm i rabbit-pie

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • foo42