FoxoChat.js Packages
    Preparing search index...

    Interface Options

    interface Options {
        reconnect: boolean;
        reconnectTimeout: number;
        url: string;
        websocket(
            ...args: [url: string | URL, protocols?: string | string[]],
        ): WebSocket;
    }
    Index

    Properties

    reconnect: boolean

    Whether the client should attempt to reconnect automatically after a disconnection.

    reconnectTimeout: number

    Timeout in milliseconds before attempting to reconnect.

    url: string

    The base URL used to connect to the FoxoChat gateway server.

    Methods

    • A factory function used to create WebSocket instance.

      Parameters

      • ...args: [url: string | URL, protocols?: string | string[]]

      Returns WebSocket