RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

    • Extension Components Overview
    • filter

    • transform

    • external

      • redisClient
      • kafkaProducer
      • natsClient
      • rabbitmqClient
      • opengeminiWrite
      • opengeminiQuery
      • MongoDB Client
      • Redis Publisher
      • grpcClient
      • OpenTelemetry
      • BeanstalkdWorker
      • BeanstalkdTube
      • WukongimSender
        • Configuration
        • Configuration Example
    • ai

    • ci

    • IoT

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

目录

WukongimSender

x/wukongimSender component: v0.29.0+ Wukongim message sender.

Requires an additional extension library: rulego-components (opens new window)

# Configuration

Field Type Description Default Value
Server string Server address tcp://175.27.245.108:15100
UID string User UID test1
Token string Login password test1
ConnectTimeout int64 Connection timeout (in seconds) 5
ProtoVersion int Protocol version wkproto.LatestVersion
PingInterval int64 Heartbeat interval (in seconds) 30
Reconnect bool Whether to reconnect automatically true
AutoAck bool Whether to automatically acknowledge messages true
ChannelID string Channel ID (supports ${} placeholders) ${channelId}
ChannelType string Channel type (supports ${} placeholders) ${channelType}
NoPersist bool Whether to persist messages false
SyncOnce bool Whether to synchronize once (write mode) false
RedDot bool Whether to display a red dot true
NoEncrypt bool Whether to encrypt messages false

# Configuration Example

{
	"ruleChain": {
		"id": "j-VTV0NZgtgA",
		"name": "WukongIM Send Test",
		"root": true,
		"additionalInfo": {
			"description": "",
			"layoutX": "670",
			"layoutY": "330"
		},
		"configuration": {},
		"disabled": false
	},
	"metadata": {
		"endpoints": [],
		"nodes": [
			{
				"id": "node_2",
				"type": "x/wukongimSender",
				"name": "Send Node",
				"configuration": {
					"server": "tcp://127.0.0.1:5100",
					"uID": "test1",
					"token": "test1",
					"connectTimeout": "50",
					"protoVersion": 3,
					"pingInterval": "300",
					"reconnect": true,
					"autoAck": true,
					"channelID": "test2",
					"channelType": 1,
					"redDot": true
				},
				"debugMode": true,
				"additionalInfo": {
					"layoutX": 990,
					"layoutY": 330
				}
			}
		],
		"connections": []
	}
}

## Relation Type
Success: Execution is successful, and the message is sent to the Success chain.
Failure: Execution fails, and the message is sent to the Failure chain.
## Execution Result
Refer to the return value of Wukongim's SendMessage function, which is converted to the RuleMsg format and sent to the rule chain:
data: Content returned by SendMessage.
dataType: JSON.
type: Default is empty.
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
Edit this page on GitHub (opens new window)
Last Updated: 2025/04/02, 01:29:50
BeanstalkdTube
LLM

← BeanstalkdTube LLM→

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

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