WebSocketPeer
Inherits: PacketPeer < RefCounted < Object
There is currently no description for this class. Please help us by contributing one!
Properties
|
||
|
||
|
||
|
||
|
Methods
accept_stream ( StreamPeer stream ) |
|
void |
|
connect_to_url ( String url, TLSOptions tls_client_options=null ) |
|
get_close_code ( ) const |
|
get_close_reason ( ) const |
|
get_connected_host ( ) const |
|
get_connected_port ( ) const |
|
get_current_outbound_buffered_amount ( ) const |
|
get_ready_state ( ) const |
|
get_requested_url ( ) const |
|
get_selected_protocol ( ) const |
|
void |
poll ( ) |
send ( PackedByteArray message, WriteMode write_mode=1 ) |
|
void |
set_no_delay ( bool enabled ) |
was_string_packet ( ) const |
Enumerations
enum WriteMode:
WriteMode WRITE_MODE_TEXT = 0
There is currently no description for this enum. Please help us by contributing one!
WriteMode WRITE_MODE_BINARY = 1
There is currently no description for this enum. Please help us by contributing one!
enum State:
State STATE_CONNECTING = 0
There is currently no description for this enum. Please help us by contributing one!
State STATE_OPEN = 1
There is currently no description for this enum. Please help us by contributing one!
State STATE_CLOSING = 2
There is currently no description for this enum. Please help us by contributing one!
State STATE_CLOSED = 3
There is currently no description for this enum. Please help us by contributing one!
Property Descriptions
PackedStringArray handshake_headers = PackedStringArray()
void set_handshake_headers ( PackedStringArray value )
PackedStringArray get_handshake_headers ( )
There is currently no description for this property. Please help us by contributing one!
int inbound_buffer_size = 65535
There is currently no description for this property. Please help us by contributing one!
int max_queued_packets = 2048
There is currently no description for this property. Please help us by contributing one!
int outbound_buffer_size = 65535
There is currently no description for this property. Please help us by contributing one!
PackedStringArray supported_protocols = PackedStringArray()
void set_supported_protocols ( PackedStringArray value )
PackedStringArray get_supported_protocols ( )
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
Error accept_stream ( StreamPeer stream )
There is currently no description for this method. Please help us by contributing one!
void close ( int code=1000, String reason=”” )
There is currently no description for this method. Please help us by contributing one!
Error connect_to_url ( String url, TLSOptions tls_client_options=null )
There is currently no description for this method. Please help us by contributing one!
int get_close_code ( ) const
There is currently no description for this method. Please help us by contributing one!
String get_close_reason ( ) const
There is currently no description for this method. Please help us by contributing one!
String get_connected_host ( ) const
There is currently no description for this method. Please help us by contributing one!
int get_connected_port ( ) const
There is currently no description for this method. Please help us by contributing one!
int get_current_outbound_buffered_amount ( ) const
There is currently no description for this method. Please help us by contributing one!
State get_ready_state ( ) const
There is currently no description for this method. Please help us by contributing one!
String get_requested_url ( ) const
There is currently no description for this method. Please help us by contributing one!
String get_selected_protocol ( ) const
There is currently no description for this method. Please help us by contributing one!
void poll ( )
There is currently no description for this method. Please help us by contributing one!
Error send ( PackedByteArray message, WriteMode write_mode=1 )
There is currently no description for this method. Please help us by contributing one!
Error send_text ( String message )
There is currently no description for this method. Please help us by contributing one!
void set_no_delay ( bool enabled )
There is currently no description for this method. Please help us by contributing one!
bool was_string_packet ( ) const
There is currently no description for this method. Please help us by contributing one!