Send a payload to a TCP server.
yaml
type: "io.kestra.plugin.fs.tcp.Send"Examples
Send a UTF-8 message to a TCP server.
yaml
id: tcp_send_example
namespace: dev
tasks:
- id: send_tcp
type: io.kestra.plugin.fs.tcp.Send
host: 127.0.0.1
port: 9090
payload: "Hello from Kestra"
Properties
host *Requiredstring
The target host or IP address.
payload *Requiredstring
The payload to send over TCP.
port *Requiredintegerstring
The target port number.
encoding string
Default
UTF-8Encoding for the payload. Use 'BASE64' for binary data.
tcpService Non-dynamicTcpService
Default
{}timeout string
Format
durationOptional timeout for the socket connection.
Outputs
host string
The target host.
port integer
The target port.
sentBytes integer
Number of bytes sent.