/rabbitmq-json-messager

This library helps you to handle all messages have been published in the host and the channel which you have defined.

Primary LanguageJavaScript

RabbitMQ JSON Messager Build Status

This library helps you to handle all messages have been published in the host and the channel which you have defined.

$ npm install rabbit-mq-json-messager --save

Configurations

AMQP_HOSTNAME=amqp://localhost
AMQP_CHANNEL=hello

Usage

var amqp = require('amqplib/callback_api');
var rabbitMq = new RabbitMQ(amqp, function (message) {
  console.log(message);
});