net
net
component: send msg to the specified protocol network server (does not support reading data), supports protocols: tcp, udp, ip4:1, ip6:ipv6-icmp, ip6:58, unix, unixgram, and other protocol types supported by the net package.
TIP
Each message will add an end character '\n' at the end of the content before sending
# Configuration
Field | Type | Required | Description | Default value |
---|---|---|---|---|
Protocol | string | Yes | Protocol tcp/udp, and other protocol types supported by the net package | tcp |
Server | string | Yes | Server address, in the format of host:port such as (:8888) | 0 |
ConnectTimeout | int | No | Connection timeout, in seconds, if <=0 then default to 60 | 60 |
HeartbeatInterval | int | No | Heartbeat interval, used to periodically send heartbeat messages, in seconds, if <=0 then default to 60 | 60 |
# Relation Type
- Success: Send successful, send the message to the
Success
chain - Failure: Send failed, send the message to the
Failure
chain
# Execution result
# Configuration example
{
"id": "s1",
"type": "net",
"name": "Push data",
"configuration": {
"protocol": "tcp",
"server": "127.0.0.1:8888"
}
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Application example
Example reference: Example (opens new window)
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01