rokot-mq-rabbit
Rokot - Rocketmakers TypeScript NodeJs Platform
Introduction
A typescript library for producing and consuming rabbitmq messages
The Rokot platform components heavily rely on usage of the typings utility for typescript definitions management. If you don't have
typings
installed:
npm i typings -g
Getting Started
Installation
Install via npm
npm i rokot-mq-rabbit --save
Typings
You will also need these ambient dependencies:
NOTE: you might already have some of these ambient dependencies installed!
typings install amqplib bluebird bunyan node -SA
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