Skip to content

TCP Server

The net.tcp.server module emits a message messages based on the data it receives from clients that connect to it. Messages are determined by “framing” techniques as TCP is a stream based protocol.

  • typenet.tcp.server
  • params:
    • framing: the method used to frame messages over the TCP connection
    • ip: (optional, default "0.0.0.0") the IP address to bind the TCP server to
    • port: the port for the TCP server to listen on

Start a TCP server listening on port 8888, incoming data will be split on line-feed (\n)

- id: tcpServer
type: net.tcp.server
params:
ip: 127.0.0.1
port: 8888
framing: LF