Hierarchy

  • WebSocketClient

Constructors

Properties

client: Client
connected: boolean = false
heartbeat?: Timer
ping?: number
ready: boolean = false
ws?: WebSocket

Methods

  • Connect to the server.

    Parameters

    • Optional disallowReconnect: boolean

    Returns Promise<void>