2018-02-19 09:47:16 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2018-02-27 12:40:43 +00:00
|
|
|
<class name="WebSocketMultiplayerPeer" inherits="NetworkedMultiplayerPeer" category="Core" version="3.1">
|
2018-02-19 09:47:16 +00:00
|
|
|
<brief_description>
|
2018-05-08 12:40:08 +00:00
|
|
|
Base class for WebSocket server and client.
|
2018-02-19 09:47:16 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2018-05-08 12:40:08 +00:00
|
|
|
Base class for WebSocket server and client, allowing them to be used as network peer for the [MultiplayerAPI].
|
2018-02-19 09:47:16 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="get_peer" qualifiers="const">
|
|
|
|
<return type="WebSocketPeer">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="peer_id" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2018-05-08 12:40:08 +00:00
|
|
|
Returns the [WebSocketPeer] associated to the given [code]peer_id[/code].
|
2018-02-19 09:47:16 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<signals>
|
|
|
|
<signal name="peer_packet">
|
|
|
|
<argument index="0" name="peer_source" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2018-05-08 12:40:08 +00:00
|
|
|
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.
|
2018-02-19 09:47:16 +00:00
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|