@purista/natsbridge
v1.11.0
Published
NATS eventbridge for PURISTA backend framework
Downloads
26
Readme
@purista/natsbridge
Package for using a NATS broker as event bridge.
The event bridge supports brokers with and without JetStream enabled.
If JetStream is enabled, subscriptions which are marked as durable are persisted by using JetStream.
If JetStream is not available, subscription fall back to live-subscriptions without any persistence.
Example usage:
import { NatsBridge } from '@purista/natsbridge'
// create and init our eventbridge
const eventBridge = new NatsBridge()
await eventBridge.start()
Visit purista.dev
Follow on Twitter @purista_js
Join the Discord Chat