An easy to use, no frills module allowing inter-process publish/subscribe communication on the top of an AMQP broker like RabbitMQ.
npm install pub-sub-amqp
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' });
});
npm test
MIT