Disconnects the peer identified by id from the server. See WebSocketPeer.close for more info.
Returns the IP address of the given peer.
Returns the remote port of the given peer.
Returns true if a peer with the given ID is connected.
Returns true if the server is actively listening on a port.
Start listening on the given port. You can specify the desired subprotocols via the "protocols" array. If the list empty (default), "binary" will be used. You can use this server as a network peer for MultiplayerAPI by passing true as gd_mp_api. Note: dataReceived will not be fired and clients other than Godot will not work in this case.
Stop the server and clear its state.
A WebSocket server implementation
This class implements a WebSocket server that can also support the high level multiplayer API. After starting the server (listen), you will need to NetworkedMultiplayerPeer.poll it at regular intervals (e.g. inside Node._process). When clients connect, disconnect, or send data, you will receive the appropriate signal. Note: This class will not work in HTML5 exports due to browser restrictions.