Skip to content

Network.Client

Name Mandatory Description Default Type
⬅️ Input The input of this shard is ignored. Any
Output ➡️ The peer object created. Peer
Address No The local bind address or the remote address. localhost StringVar(String)
Port No The port to bind if server or to connect to if client. 9191 IntVar(Int)
Handler No The shards to execute when a packet is received. none Shard[Shard]None

This shard creates a UDP client connection using the KCP protocol, on the address and port specified in the Address and Port parameters.