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
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/01/20, 08:24:31