mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
69 lines
2.5 KiB
ReStructuredText
69 lines
2.5 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the WebSocketPeer.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_WebSocketPeer:
|
|
|
|
WebSocketPeer
|
|
=============
|
|
|
|
**Inherits:** :ref:`PacketPeer<class_packetpeer>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`close<class_WebSocketPeer_close>` **(** **)** |
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_write_mode<class_WebSocketPeer_get_write_mode>` **(** **)** const |
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`is_connected_to_host<class_WebSocketPeer_is_connected_to_host>` **(** **)** const |
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_write_mode<class_WebSocketPeer_set_write_mode>` **(** :ref:`int<class_int>` mode **)** |
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`was_string_packet<class_WebSocketPeer_was_string_packet>` **(** **)** const |
|
|
+--------------------------+--------------------------------------------------------------------------------------------------+
|
|
|
|
Enums
|
|
-----
|
|
|
|
.. _enum_WebSocketPeer_WriteMode:
|
|
|
|
enum **WriteMode**
|
|
|
|
- **WRITE_MODE_TEXT** = **0**
|
|
- **WRITE_MODE_BINARY** = **1**
|
|
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_WebSocketPeer_close:
|
|
|
|
- void **close** **(** **)**
|
|
|
|
.. _class_WebSocketPeer_get_write_mode:
|
|
|
|
- :ref:`int<class_int>` **get_write_mode** **(** **)** const
|
|
|
|
.. _class_WebSocketPeer_is_connected_to_host:
|
|
|
|
- :ref:`bool<class_bool>` **is_connected_to_host** **(** **)** const
|
|
|
|
.. _class_WebSocketPeer_set_write_mode:
|
|
|
|
- void **set_write_mode** **(** :ref:`int<class_int>` mode **)**
|
|
|
|
.. _class_WebSocketPeer_was_string_packet:
|
|
|
|
- :ref:`bool<class_bool>` **was_string_packet** **(** **)** const
|
|
|
|
|