Files
showbridge-docs/src/content/docs/modules/nats/client.md
T
2026-03-26 18:09:38 -05:00

516 B

title, sidebar
title sidebar
NATS Client
label order
Client 1

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

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