Base class for WebSocket server and client. Base class for WebSocket server and client, allowing them to be used as multiplayer peer for the [MultiplayerAPI]. [b]Note:[/b] When exporting to Android, make sure to enable the [code]INTERNET[/code] permission in the Android export preset before exporting the project or using one-click deploy. Otherwise, network communication of any kind will be blocked by Android. Closes this [MultiplayerPeer], resetting the state to [constant MultiplayerPeer.CONNECTION_CONNECTED]. [b]Note:[/b] To make sure remote peers receive a clean close prefer disconnecting clients via [method disconnect_peer]. Starts a new multiplayer client connecting to the given [param url]. If [param verify_tls] is [code]false[/code] certificate validation will be disabled. If specified, the [param tls_certificate] will be used to verify the TLS host. [b]Note[/b]: It is recommended to specify the scheme part of the URL, i.e. the [param url] should start with either [code]ws://[/code] or [code]wss://[/code]. Starts a new multiplayer server listening on the given [param port]. You can optionally specify a [param bind_address], and provide a [param tls_key] and [param tls_certificate] to use TLS. Disconnects the peer identified by [code]id[/code] from the server. See [method WebSocketPeer.close] for more information. Returns the [WebSocketPeer] associated to the given [code]peer_id[/code]. Returns the IP address of the given peer. Returns the remote port of the given peer. The extra headers to use during handshake. See [member WebSocketPeer.handshake_headers] for more details. The maximum time each peer can stay in a connecting state before being dropped. The inbound buffer size for connected peers. See [member WebSocketPeer.inbound_buffer_size] for more details. The maximum number of queued packets for connected peers. See [member WebSocketPeer.max_queued_packets] for more details. The outbound buffer size for connected peers. See [member WebSocketPeer.outbound_buffer_size] for more details. The supported WebSocket sub-protocols. See [member WebSocketPeer.supported_protocols] for more details.