rabbit-mq-json-messager

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

Usage no npm install needed!

<script type="module">
  import rabbitMqJsonMessager from 'https://cdn.skypack.dev/rabbit-mq-json-messager';
</script>

README

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);
});