Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lavadeno/src/connection.ts>Connection

lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.
Latest
class Connection
import { Connection } from "https://deno.land/x/lavadeno@3.3.0/src/connection.ts";

Constructors

new
Connection(node: N, info: ConnectionInfo)

Type Parameters

optional
N extends Node = Node

Properties

private
readonly
reconnectDelay: number | null
readonly
active: boolean
readonly
address: string
readonly
info: ConnectionInfo
latency: number | null
readonly
node: N
queue: QueuedPayload[]
reconnectAttempt: number
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>
disconnect(code?, reason?)
ping(): Promise<boolean>
reconnect(): Promise<boolean>
send(payload: Lavalink.OutgoingMessage, prioritize?): Promise<void>