Skip to content

NATS Client

This module connects to a NATS server and subscribes to a subject.

  • type: nats.client
  • params:
    • url: the URL of the NATS server to connect to (e.g. nats://localhost:4222)
    • subject: the subject to subscribe to

Connect to a local NATS server and subscribe to the events subject

- id: natsClient
type: nats.client
params:
url: nats://localhost:4222
subject: events