rabbitmq-pub-sub
TypeScript NodeJs Platform
Introduction
A typescript library for producing and consuming rabbitmq messages
If you don't have typings
installed:
npm i typings -g
Getting Started
Installation
Install via npm
npm i rabbitmq-pub-sub --save
Example
; // Create connection with amqp connection string// const factory = new RabbitMqConnectionFactory(logger, "amqp://localhost:1234"); // or, create connection with host/port config; consumer.subscribe"<queue name>", .then.catch; producer.publish"<queue name>", .then.catch
Consumed Libraries
amqplib
amqp library
Inspiration
Rokot - Rocketmakers