Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Connection

Index

Constructors

constructor

Properties

Private Optional [_socket]

[_socket]: WebSocket

Optional connectedAt

connectedAt: number

Readonly info

Readonly node

node: Node

payloadQueue

payloadQueue: OutgoingPayload[] = []

reconnectTry

reconnectTry: number = 0

Static CLIENT_NAME

CLIENT_NAME: string = "lavaclient"

Accessors

active

  • get active(): boolean

canReconnect

  • get canReconnect(): boolean

uptime

  • get uptime(): number

Methods

Private _onclose

  • _onclose(__namedParameters: CloseEvent): Promise<void>

Private _onerror

  • _onerror(event: ErrorEvent): void

Private _onmessage

  • _onmessage(__namedParameters: MessageEvent): void

Private _onopen

  • _onopen(): Promise<void>

Private _send

configureResuming

  • configureResuming(): Promise<void>

connect

  • connect(): void

disconnect

  • disconnect(code?: number, reason?: string): void

flushQueue

  • flushQueue(): void

reconnect

  • reconnect(): boolean

send

  • send(important: boolean, data: OutgoingMessage): Promise<void>

Generated using TypeDoc