Skip to content

TCP Listen Node

Web/TCP

TCP Listen

Binds a TCP listener on a port. Fires on_listening, then accepts incoming connections and invokes the handler for each. Holds execution until closed or timed out, then triggers on_close.

tcp_listenwebLong running
Inputs2
Outputs3
Security exposure5/10
Packageweb

Ratings

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

SecurityAttack surface and exposure impact.
5/10Medium
PrivacyPotential sensitivity of processed data.
4/10Medium
PerformanceRuntime or resource pressure.
3/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

Start the TCP listener

Config

Struct
config

TCP listener configuration (host, port, optional timeout, max connections)

TcpListenConfigTcpListenConfig5 fields
hoststringrequired
portinteger:uint16required
format uint16min 0max 65535
timeout_secondsinteger:uint64
format uint64default 0min 0
max_connectionsinteger:uint32
format uint32default 128min 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

3

On Listening

Execution
on_listening

Fires after the listener is bound and ready

On Close

Execution
on_close

Fires when the listener stops

Error

Execution
exec_error

Fires if the listener fails to bind

Node Info

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