W3cubDocs

/Godot 3.1

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.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_websocketmultiplayerpeer.html