Type alias WebsocketProviderParams

WebsocketProviderParams: {
    WebSocketPolyfill?: {
        CLOSED: number;
        CLOSING: number;
        CONNECTING: number;
        OPEN: number;
        prototype: WebSocket;
        new (url, protocols?): WebSocket;
    };
    awareness?: Awareness;
    connect?: boolean;
    disableBc?: boolean;
    maxBackoffTime?: number;
    params?: {
        [x: string]: string;
    };
    resyncInterval?: number;
}

Type declaration

  • Optional WebSocketPolyfill?: {
        CLOSED: number;
        CLOSING: number;
        CONNECTING: number;
        OPEN: number;
        prototype: WebSocket;
        new (url, protocols?): WebSocket;
    }
      • new (url, protocols?): WebSocket
      • Parameters

        • url: string | URL
        • Optional protocols: string | string[]

        Returns WebSocket

    • Readonly CLOSED: number
    • Readonly CLOSING: number
    • Readonly CONNECTING: number
    • Readonly OPEN: number
    • prototype: WebSocket
  • Optional awareness?: Awareness
  • Optional connect?: boolean
  • Optional disableBc?: boolean
  • Optional maxBackoffTime?: number
  • Optional params?: {
        [x: string]: string;
    }
    • [x: string]: string
  • Optional resyncInterval?: number

Generated using TypeDoc