revbot.js
    Preparing search index...

    Class WebSocketClient

    Represents the WebSocket client used for real-time communication with the API.

    Index

    Constructors

    Properties

    connected: boolean = false

    Whether the WebSocket client is connected.

    heartbeatInterval?: number

    The interval for sending heartbeats, in milliseconds.

    lastPingTimestamp?: number

    The timestamp of the last ping sent, in milliseconds.

    lastPongAck?: boolean = false

    Whether the last pong acknowledgment was received.

    ready: boolean = false

    Whether the WebSocket client is ready.

    reconnecting: null | Promise<unknown> = null

    A promise representing the reconnecting process, or null if not reconnecting.

    socket?: null | WebSocket

    The WebSocket connection instance.

    Accessors

    Methods