Needlessly Postulating Minds
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

pub-sub-amqp

1.0.1 • Public • Published

pub-sub-amqp

npm version build status

An easy to use, no frills module allowing inter-process publish/subscribe communication on the top of an AMQP broker like RabbitMQ.

Installation

npm install pub-sub-amqp

Usage

 
var amqpClient = require('pub-sub-amqp');
 
new amqpClient({ uri: 'amqp://localhost' }, function (err, eventManagar) {
 
    eventManagar.on('ready', function (err, event) {
      console.log(event.data); // -> { some: 'data' }
    });
 
    eventManagar.emit('ready', { some: 'data' });
});

API

Test

npm test

License

MIT

install

npm i pub-sub-amqp

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar