BaseWebSocketAdapter

Inherits: Node < Object

Inherited By: DiscordWebSocketAdapter, VoiceWebSocketAdapter

Properties

type name default
int timeout_ms 30000
int last_sequence
int last_beat
int latency
bool reconnecting
bool auto_reconnect true

Methods

return type signature
Variant setup ( )
Variant connect_to_gateway ( bool verify_ssl=true )
void disconnect_from_gateway ( int code=1000, String reason="" )
void send_packet ( Packet packet )
void add_handler ( PacketHandler handler )
void remove_handler ( PacketHandler handler )
void dispatch_packet ( DiscordPacket packet )
bool is_connected_to_gateway ( )
void close ( )
String get_url ( )
String get_class ( )

Signals

  • connected ( )

    There is currently no description for this signal.


  • disconnected ( )

    There is currently no description for this signal.


  • reconnected ( )

    There is currently no description for this signal.


  • connection_error ( )

    There is currently no description for this signal.


  • packet_received ( packet )

    There is currently no description for this signal.

Constants

  • Dictionary CloseEventCode

    • UNKOWN_ERROR = 4000

    • DECODE_ERROR = 4002

    • SESSION_NO_LONGER_VALID = 4006

    • INVALID_SEQ = 4007

    • RATE_LIMITED = 4008

    • INVALID_SHARD = 4010

    • SHARDING_REQUIRED = 4011

    • INVALID_API_VERSION = 4012

    • INVALID_INTENTS = 4013

    • DISALLOWED_INTENTS = 4014

    • FAILED_TO_DECODE_PAY_LOAD = 4002

    • SESSION_TIMED_OUT = 4009

    • SERVER_NOT_FOUND = 4011

    • UNKOWN_PROTOCOL = 4012

    • DISCONNECTED = 4014

    • VOICE_SERVER_CRASHED = 4015

    • UNKOWN_ENCRYPTION_MODE = 4015

    • UNKOWN_OPCODE = 4001

    • NOT_AUTHENTICATED = 4003

    • AUTHENTICATION_FAILED = 4004

    • ALREADY_AUTHENTICATED = 4005

    There is currently no description for this constant.

Property Descriptions

  • int timeout_ms

    There is currently no description for this property.


  • int last_sequence

    There is currently no description for this property.


  • int last_beat

    There is currently no description for this property.


  • int latency

    There is currently no description for this property.


  • bool reconnecting

    There is currently no description for this property.


  • bool auto_reconnect

    There is currently no description for this property.

Method Descriptions

  • Variant setup ( )

    There is currently no description for this method.


  • Variant connect_to_gateway ( bool verify_ssl=true )

    There is currently no description for this method.


  • void disconnect_from_gateway ( int code=1000, String reason="" )

    There is currently no description for this method.


  • void send_packet ( Packet packet )

    There is currently no description for this method.


  • void add_handler ( PacketHandler handler )

    There is currently no description for this method.


  • void remove_handler ( PacketHandler handler )

    There is currently no description for this method.


  • void dispatch_packet ( DiscordPacket packet )

    There is currently no description for this method.


  • bool is_connected_to_gateway ( )

    There is currently no description for this method.


  • void close ( )

    There is currently no description for this method.


  • String get_url ( )

    There is currently no description for this method.


  • String get_class ( )

    There is currently no description for this method.