.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/modules/webrtc/doc_classes/WebRTCDataChannel.xml. .. _class_WebRTCDataChannel: WebRTCDataChannel ================= **Inherits:** :ref:`PacketPeer` **<** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`WebRTCDataChannelExtension` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +----------------------------------------------------+----------------------------------------------------------------+-------+ | :ref:`WriteMode` | :ref:`write_mode` | ``1`` | +----------------------------------------------------+----------------------------------------------------------------+-------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`close` **(** **)** | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_buffered_amount` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_id` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_label` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_max_packet_life_time` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_max_retransmits` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_protocol` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`ChannelState` | :ref:`get_ready_state` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_negotiated` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_ordered` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`poll` **(** **)** | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`was_string_packet` **(** **)** |const| | +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_WebRTCDataChannel_WriteMode: .. rst-class:: classref-enumeration enum **WriteMode**: .. _class_WebRTCDataChannel_constant_WRITE_MODE_TEXT: .. rst-class:: classref-enumeration-constant :ref:`WriteMode` **WRITE_MODE_TEXT** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_WebRTCDataChannel_constant_WRITE_MODE_BINARY: .. rst-class:: classref-enumeration-constant :ref:`WriteMode` **WRITE_MODE_BINARY** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _enum_WebRTCDataChannel_ChannelState: .. rst-class:: classref-enumeration enum **ChannelState**: .. _class_WebRTCDataChannel_constant_STATE_CONNECTING: .. rst-class:: classref-enumeration-constant :ref:`ChannelState` **STATE_CONNECTING** = ``0`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_WebRTCDataChannel_constant_STATE_OPEN: .. rst-class:: classref-enumeration-constant :ref:`ChannelState` **STATE_OPEN** = ``1`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_WebRTCDataChannel_constant_STATE_CLOSING: .. rst-class:: classref-enumeration-constant :ref:`ChannelState` **STATE_CLOSING** = ``2`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. _class_WebRTCDataChannel_constant_STATE_CLOSED: .. rst-class:: classref-enumeration-constant :ref:`ChannelState` **STATE_CLOSED** = ``3`` .. container:: contribute There is currently no description for this enum. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_WebRTCDataChannel_property_write_mode: .. rst-class:: classref-property :ref:`WriteMode` **write_mode** = ``1`` .. rst-class:: classref-property-setget - void **set_write_mode** **(** :ref:`WriteMode` value **)** - :ref:`WriteMode` **get_write_mode** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_WebRTCDataChannel_method_close: .. rst-class:: classref-method void **close** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_buffered_amount: .. rst-class:: classref-method :ref:`int` **get_buffered_amount** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_id: .. rst-class:: classref-method :ref:`int` **get_id** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_label: .. rst-class:: classref-method :ref:`String` **get_label** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_max_packet_life_time: .. rst-class:: classref-method :ref:`int` **get_max_packet_life_time** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_max_retransmits: .. rst-class:: classref-method :ref:`int` **get_max_retransmits** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_protocol: .. rst-class:: classref-method :ref:`String` **get_protocol** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_get_ready_state: .. rst-class:: classref-method :ref:`ChannelState` **get_ready_state** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_is_negotiated: .. rst-class:: classref-method :ref:`bool` **is_negotiated** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_is_ordered: .. rst-class:: classref-method :ref:`bool` **is_ordered** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_poll: .. rst-class:: classref-method :ref:`Error` **poll** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_WebRTCDataChannel_method_was_string_packet: .. rst-class:: classref-method :ref:`bool` **was_string_packet** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`