mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-11 00:23:38 +00:00
23 lines
535 B
Plaintext
23 lines
535 B
Plaintext
---
|
|
title: Create NATS Message
|
|
sidebar:
|
|
label: Create
|
|
order: 1
|
|
---
|
|
|
|
This processor will create a NATS message from the provided parameters. This processor will return an error if any of the required parameters are missing or if the parameters are of the wrong type.
|
|
|
|
- **type**: `nats.message.create`
|
|
- **params**:
|
|
- **subject**: the subject to publish the message to.
|
|
- **payload**: the payload of the message.
|
|
|
|
### Example
|
|
|
|
```yaml
|
|
- type: nats.message.create
|
|
params:
|
|
subject: "events"
|
|
payload: "Hello, World!"
|
|
```
|