WebSocketMultiplayerPeer

Base class for WebSocket server and client.

Base class for WebSocket server and client, allowing them to be used as network peer for the MultiplayerAPI.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getPeer
Ref!WebSocketPeer getPeer(long peer_id)

Returns the WebSocketPeer associated to the given peer_id.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(WebSocketMultiplayerPeer other)
opEquals
bool opEquals(typeof(null) n)
setBuffers
GodotError setBuffers(long input_buffer_size_kb, long input_max_packets, long output_buffer_size_kb, long output_max_packets)

Configures the buffer sizes for this WebSocket peer. Default values can be specified in the Project Settings under network/limits. For server, values are meant per connected peer. The first two parameters define the size and queued packets limits of the input buffer, the last two of the output buffer. Buffer sizes are expressed in KiB, so 4 = 2^12 = 4096 bytes. All parameters will be rounded up to the nearest power of two. Note: HTML5 exports only use the input buffer since the output one is managed by browsers.

toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
WebSocketMultiplayerPeer _new()

Construct a new instance of WebSocketMultiplayerPeer. Note: use memnew!WebSocketMultiplayerPeer instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta