NATS Client
This module connects to a NATS server and subscribes to a subject.
Schema
- description: Connects to the specified NATS server and subscribes to the specified subject
- type:
nats.client - params:
- subject: the subject to subscribe to
- url: the URL of the NATS server to connect to
This module implements the PubSubModule interface.
Example
Section titled “Example”Connect to a local NATS server and subscribe to the events subject
- id: natsClient type: nats.client params: url: nats://localhost:4222 subject: events