This commit is contained in:
Joel Wetzell
2026-05-17 21:12:04 -05:00
parent 69bc31d3f1
commit 8e6cd58006
82 changed files with 642 additions and 450 deletions
+10 -6
View File
@@ -1,21 +1,25 @@
---
title: NATS Client
sidebar:
label: Client
order: 1
label: Client
order: 1
---
This module connects to a [NATS](https://nats.io/) 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
- **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
Connect to a local NATS server and subscribe to the `events` subject
```yaml
- id: natsClient
type: nats.client
params:
url: nats://localhost:4222
subject: events
```
```