@ifextech/message-broker-wrappers
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

How to user the package?

Create a simple Publisher

import { Brokers } from '@ifextech/message-broker-wrappers';

const nats = new Brokers.Nats()
nats.connect({ host: /* Your  host here */ })
.then(() => {
  nats.publish('to', { payload: {} }, () => /* Your logic here */)
})

Create a simple Subscriber

import { Brokers } from '@ifextech/message-broker-wrappers';

const nats = new Brokers.Nats()
nats.connect({ host: /* Your  host here */ })
.then(() => {
  nats.subscribe('to', () => /* Your logic here */)
})

Readme

Keywords

none

Package Sidebar

Install

npm i @ifextech/message-broker-wrappers

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

14.5 kB

Total Files

13

Last publish

Collaborators

  • jimmycodder