mqclient

0.0.4 • Public • Published

mqclient

Client for various message queues. Currently supports only RabbitMQ.

Example

Subscriber

var mqClient = require('mqclient/amqp')

mqClient.sub('channel-abc', function (err, data) {
  if (err) throw new Error(err)
  else console.log('Data:', data)
})

Publisher

var mqClient = require('mqclient/amqp')

mqClient.pub('channel-abc', 'HEY HO!', function (err, msg) {
  if (err) throw new Error(err)
  else console.log('Published:', msg)
})

Readme

Keywords

none

Package Sidebar

Install

npm i mqclient

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • hacksparrow