natsClient
natsClient
组件:v0.21.0+ nats客户端。往nats server 指定主题发布当前消息数据。
# 配置
字段 | 类型 | 说明 | 默认值 |
---|---|---|---|
topic | string | 发布主题,可以使用 ${metaKeyName} 替换元数据中的变量 | 无 |
server | string | nats server地址 | 无 |
username | string | 用户名 | 无 |
password | string | 密码 | 无 |
# Relation Type
- Success: 执行成功,把消息发送到
Success
链 - Failure: 执行失败,把消息发送到
Failure
链
# 执行结果
该组件不会改变msg
、metadata
和msgType
内容。
# 配置示例
{
"id": "s2",
"type": "natsClient",
"name": "往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
在 GitHub 上编辑此页 (opens new window)
上次更新: 2024/06/21, 04:40:14