RuleGo RuleGo
🏠首页
  • 快速入门
  • 规则链
  • 标准组件
  • 扩展组件
  • 自定义组件
  • 可视化
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • 触发器
  • 高级主题
  • 性能
  • 标准组件
  • 扩展组件
  • 自定义组件
  • 组件市场
  • 概述
  • 快速入门
  • 路由
  • DSL
  • API
  • Options
  • 组件
🔥编辑器 (opens new window)
  • 可视化编辑器 (opens new window)
  • RuleGo-Server (opens new window)
  • ❓问答

    • FAQ
💖支持
👥加入社区
  • Github (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • 更新日志 (opens new window)
  • English
  • 简体中文
🏠首页
  • 快速入门
  • 规则链
  • 标准组件
  • 扩展组件
  • 自定义组件
  • 可视化
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • 触发器
  • 高级主题
  • 性能
  • 标准组件
  • 扩展组件
  • 自定义组件
  • 组件市场
  • 概述
  • 快速入门
  • 路由
  • DSL
  • API
  • Options
  • 组件
🔥编辑器 (opens new window)
  • 可视化编辑器 (opens new window)
  • RuleGo-Server (opens new window)
  • ❓问答

    • FAQ
💖支持
👥加入社区
  • Github (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • 更新日志 (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Endpoint概述
  • 快速入门
  • 路由
  • DSL
  • API
  • Options
  • 组件

    • Rest Endpoint
    • Websocket Endpoint
    • MQTT Endpoint
    • Schedule Endpoint
    • Net Endpoint
    • Kafka Endpoint
    • Nats Endpoint
    • Redis Sub Endpoint
    • Redis Steam Endpoint
    • Rabbitmq Endpoint
    • MYSQL CDC Endpoint
    • OPC_UA Endpoint
    • GRPC Stream Endpoint
    • Beanstalkd Endpoint
    • Wukongim Endpoint
      • Type
      • 配置参数
      • 配置示例
      • 输出参数
    • 扩展Endpoint
目录

Wukongim Endpoint

wukongim Endpoint v0.28.0+ 提供了基于Wukongim的频道消息订阅功能,订阅消息信传递下个节点处理。

提示

1.该组件是扩展组件,需要引入额外的扩展库:rulego-components (opens new window)

# Type

endpoint/wukongim

# 配置参数

字段 类型 说明 默认值
Server string Wukongim服务器地址列表 tcp://175.27.245.108:15100
UID string 用户UID test1
Token string 登录密码 test1
ConnectTimeout int64 连接超时(单位:秒) 5
ProtoVersion int Proto版本 wkproto.LatestVersion
PingInterval int64 心跳间隔(单位:秒) 30
Reconnect bool 是否自动重连 true
AutoAck bool 是否自动确认 true

# 配置示例

{
"ruleChain": {
"id": "wGhAZMxoSECp",
"name": "悟空IM消息订阅",
"debugMode": false,
"root": true,
"disabled": true,
"additionalInfo": {
"createTime": "2025/01/13 10:04:40",
"description": "",
"layoutX": "280",
"layoutY": "280",
"updateTime": "2025/01/13 10:11:24",
"username": "admin"
}
},
"metadata": {
"endpoints": [
{
"id": "node_2",
"additionalInfo": {
"layoutX": 570,
"layoutY": 440
},
"type": "endpoint/wukongim",
"name": "订阅",
"debugMode": false,
"configuration": {
"autoAck": true,
"connectTimeout": 5,
"pingInterval": 30,
"protoVersion": 3,
"reconnect": true,
"server": "tcp://175.27.245.108:15100",
"token": "test1",
"uID": "group1"
},
"processors": null,
"routers": [
{
"id": "peywKET4J7YD",
"params": [],
"from": {
"path": "*",
"configuration": null,
"processors": []
},
"to": {
"path": "wGhAZMxoSECp:node_4",
"configuration": null,
"wait": false,
"processors": []
}
}
]
}
],
"nodes": [
{
"id": "node_4",
"additionalInfo": {
"layoutX": 790,
"layoutY": 350
},
"type": "log",
"name": "log",
"debugMode": true,
"configuration": {
"jsScript": "return 'Incoming message:\n' + JSON.stringify(msg) + '\nIncoming metadata:\n' + JSON.stringify(metadata);"
}
}
],
"connections": []
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

# 输出参数

从Wukongim服务器接收到的消息会被转换为 RuleMsg 格式并发送到规则链:

  • data:消息内容
  • dataType:JSON
  • type:默认为空
在 GitHub 上编辑此页 (opens new window)
上次更新: 2025/03/31, 01:52:11
Beanstalkd Endpoint
扩展Endpoint

← Beanstalkd Endpoint 扩展Endpoint→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式