class

Godot::WebSocketPeer

Inherits Godot::PacketPeer < Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

accept_stream(stream : StreamPeer) : Int64
Source
close(code : Int64, reason : String) : Void
Source
connect_to_url(url : String, tls_client_options : TLSOptions) : Int64
Source
get_close_code
Source
get_close_reason
Source
get_connected_host
Source
get_connected_port
Source
get_current_outbound_buffered_amount
Source
get_handshake_headers
Source
get_heartbeat_interval
Source
get_inbound_buffer_size
Source
get_max_queued_packets
Source
get_outbound_buffer_size
Source
get_ready_state
Source
get_requested_url
Source
get_selected_protocol
Source
get_supported_protocols
Source
handshake_headers

Property handshake_headers getter

Source
handshake_headers=(val)

Property handshake_headers setter

Source
heartbeat_interval

Property heartbeat_interval getter

Source
heartbeat_interval=(val : Int)

Property heartbeat_interval setter

Source
inbound_buffer_size

Property inbound_buffer_size getter

Source
inbound_buffer_size=(val : Int)

Property inbound_buffer_size setter

Source
max_queued_packets

Property max_queued_packets getter

Source
max_queued_packets=(val : Int)

Property max_queued_packets setter

Source
outbound_buffer_size

Property outbound_buffer_size getter

Source
outbound_buffer_size=(val : Int)

Property outbound_buffer_size setter

Source
poll
Source
send(message : Pointer(Void), write_mode : Int64) : Int64
Source
send_text(message : String) : Int64
Source
set_handshake_headers(protocols : Pointer(Void)) : Void
Source
set_heartbeat_interval(interval : Float64) : Void
Source
set_inbound_buffer_size(buffer_size : Int64) : Void
Source
set_max_queued_packets(buffer_size : Int64) : Void
Source
set_no_delay(enabled : Bool) : Void
Source
set_outbound_buffer_size(buffer_size : Int64) : Void
Source
set_supported_protocols(protocols : Pointer(Void)) : Void
Source
supported_protocols

Property supported_protocols getter

Source
supported_protocols=(val)

Property supported_protocols setter

Source
was_string_packet
Source

Nested types