Skip to content

TCP Connect Node

Web/TCP

TCP Connect

Opens a TCP connection to a remote host. Triggers on_connect with the session, then invokes the on-message handler for each incoming data chunk. Holds execution until the connection closes, then triggers on_close.

tcp_connectwebLong running
Inputs2
Outputs4
Security exposure4/10
Packageweb

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
4/10Medium
PrivacyPotential sensitivity of processed data.
3/10High
PerformanceRuntime or resource pressure.
2/10High
GovernancePolicy, audit, or compliance impact.
5/10Medium
ReliabilityOperational stability considerations.
3/10High
CostExternal or compute cost impact.
0/10High

Input Pins

2

Execute

Execution
exec_in

Initiate the TCP connection

Config

Struct
config

TCP connection configuration (host, port, optional timeout)

TcpConfigTcpConfig4 fields
hoststringrequired
portinteger:uint16required
format uint16min 0max 65535
timeout_secondsinteger:uint64
format uint64default 0min 0
tlsTlsConfig
default {"secure":false,"certificate":null,"ca_...
secureboolean
default false
certificateanyOf (2)
default null
variant 1TlsCertificatevariant
certificate_pemstringrequired
private_key_pemstringrequired
variant 2nullvariant
ca_certificate_pemstring | null
default null
server_namestring | null
default null
accept_invalid_certificatesboolean
default false
Schema enforced

Output Pins

4

On Connect

Execution
on_connect

Fires after the connection is established

Session

Struct
session

TCP session reference for use with Send/Close nodes

TcpSessionTcpSession2 fields
ref_idstringrequired
remote_addrstringrequired
Schema enforced

On Close

Execution
on_close

Fires when the TCP connection is closed

Error

Execution
exec_error

Fires if the connection fails to establish

Node Info

Internal name
tcp_connect
Category
Web/TCP
Function references
Can reference functions