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

    • Standard Components Overview
    • filter

    • action

    • transform

    • external

      • restApiCall
      • mqttClient
      • sendEmail
      • dbClient
      • ssh
      • net
        • Configuration
        • Relation Type
        • Execution result
        • Configuration example
        • Application example
    • flow

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

目录

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(seconds). 60
HeartbeatInterval int No Heartbeat interval(seconds). Used to periodically send heartbeat messages. 0: don't send heartbeat messages 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

# Application example

Example reference: Example (opens new window)

Edit this page on GitHub (opens new window)
Last Updated: 2025/04/02, 01:29:50
ssh
Sub Rule Chain

← ssh Sub Rule Chain→

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

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