Network.WS.Server¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
The input of this shard is ignored. | Any |
||
<output> |
The server object created. | Object |
||
Address |
The local bind address or the remote address. | none |
String Var(String) |
|
Port |
The port to bind if server or to connect to if client. | none |
Int Var(Int) |
|
Handler |
The wire to spawn for each new peer that connects, stopping that wire will break the connection. | none |
Wire [Shard] |
|
Timeout |
The timeout in seconds after which a peer will be disconnected if there is no network activity. | none |
Float |
|
OnDisconnect |
The shards to execute when a peer disconnects, The Peer ID will be the input. | none |
Shard [Shard] |
This shard sets up a Websocket network server using TCP, on the address and port specified in the Address and Port parameters. This server then handles client connections and disconnections, messages received from clients and broadcasting messages to these clients.