WebSocketPeer

Inherits: PacketPeer < RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

PackedStringArray

handshake_headers

PackedStringArray()

int

inbound_buffer_size

65535

int

max_queued_packets

2048

int

outbound_buffer_size

65535

PackedStringArray

supported_protocols

PackedStringArray()

Methods

Error

accept_stream ( StreamPeer stream )

void

close ( int code=1000, String reason=”” )

Error

connect_to_url ( String url, TLSOptions tls_client_options=null )

int

get_close_code ( ) const

String

get_close_reason ( ) const

String

get_connected_host ( ) const

int

get_connected_port ( ) const

int

get_current_outbound_buffered_amount ( ) const

State

get_ready_state ( ) const

String

get_requested_url ( ) const

String

get_selected_protocol ( ) const

void

poll ( )

Error

send ( PackedByteArray message, WriteMode write_mode=1 )

Error

send_text ( String message )

void

set_no_delay ( bool enabled )

bool

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()

There is currently no description for this property. Please help us by contributing one!


int inbound_buffer_size = 65535

  • void set_inbound_buffer_size ( int value )

  • int get_inbound_buffer_size ( )

There is currently no description for this property. Please help us by contributing one!


int max_queued_packets = 2048

  • void set_max_queued_packets ( int value )

  • int get_max_queued_packets ( )

There is currently no description for this property. Please help us by contributing one!


int outbound_buffer_size = 65535

  • void set_outbound_buffer_size ( int value )

  • int get_outbound_buffer_size ( )

There is currently no description for this property. Please help us by contributing one!


PackedStringArray supported_protocols = PackedStringArray()

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!