import { Connection } from "https://deno.land/x/lavadeno@3.3.0/src/connection.ts";
Constructors
new
Connection(node: N, info: ConnectionInfo)Properties
readonly
info: ConnectionInforeadonly
node: Nqueue: QueuedPayload[]
optional
reconnectOptions: ReconnectOptions & { tries: number; }optional
resumingOptions: Required<ResumingOptions>Methods
private
_onclose(event: pogsockets.CloseEvent)private
_onmessage(unnamed 0: pogsockets.MessageEvent)private
_onopen()private
_send(payload: Lavalink.OutgoingMessage): Promise<void>connect()
disconnect(code?, reason?)
ping(): Promise<boolean>
reconnect(): Promise<boolean>
send(payload: Lavalink.OutgoingMessage, prioritize?): Promise<void>
Static Methods
getReconnectOptions(options?: ReconnectOptions | ReconnectType): Required<ReconnectOptions> | undefined