@luckbox/mq-clients
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Build Status

Coverage Status

Message Broker Clients

A collection of message broker implementations. Each implementation must conform the unified interface, which defines a single client who acts as both publisher and subscriber.

Installing

npm install -s @luckbox/mq-clients

Running the tests

npm run test

Usage

import { RabbitMQClient } from '@luckbox/mq-clients';

const client = new RabbitMQClient({
  amqp: {},
  exchange: {
    type: 'fanout',
  },
  retryTimeout: 1000,
  debug: true,
});

client.connect().then(() => {
  client.subscribe('nsp', console.log);
  client.publish('nsp', 'data');
});

Readme

Keywords

none

Package Sidebar

Install

npm i @luckbox/mq-clients

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

70.4 kB

Total Files

38

Last publish

Collaborators

  • ttecss
  • zupper