WebSocketMultiplayerPeer¶
Inherits: NetworkedMultiplayerPeer < PacketPeer < Reference < Object
Inherited By: WebSocketClient, WebSocketServer
Category: Core
Brief Description¶
Base class for WebSocket server and client.
Methods¶
WebSocketPeer | get_peer ( int peer_id ) const |
Signals¶
- peer_packet ( int peer_source )
Emitted when a packet is received from a peer. Note: this signal is only emitted when the client or server is configured to use Godot multiplayer API.
Description¶
Base class for WebSocket server and client, allowing them to be used as network peer for the MultiplayerAPI.
Method Descriptions¶
- WebSocketPeer get_peer ( int peer_id ) const
Returns the WebSocketPeer associated to the given peer_id
.