1.0.4 • Published 3 years ago

@ifextech/message-broker-wrappers v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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 */)
})
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago