natsClient
natsClient
component: v0.21.0+ nats client. Publish the current message data to the specified topic of the nats server.
# Configuration
This component allows the reuse of shared connection clients through the server
field. See Component Connection Reuse for reference.
Field | Type | Description | Default value |
---|---|---|---|
topic | string | Publish topic, can using Component Configuration Variables. | None |
server | string | nats server address | None |
username | string | Username | None |
password | string | Password | None |
# Relation Type
- Success: Execution successful, send the message to the
Success
chain - Failure: Execution failed, send the message to the
Failure
chain
# Execution result
This component will not change the content of msg
, metadata
and msgType
.
# Configuration example
{
"id": "s2",
"type": "natsClient",
"name": "Push data to nats server",
"configuration": {
"server": "127.0.0.1:4222",
"topic": "/device/msg/${deviceId}"
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01