A11 TypeScript API - v0.2.1
    Preparing search index...

    Type Alias WebSocketFactory

    WebSocketFactory: (
        url: string,
        protocols: string | readonly string[] | undefined,
        headers: Readonly<Record<string, string>>,
    ) => WebSocketLike | Promise<WebSocketLike>

    Factory used to construct browser-like sockets in different runtimes.

    Type Declaration

      • (
            url: string,
            protocols: string | readonly string[] | undefined,
            headers: Readonly<Record<string, string>>,
        ): WebSocketLike | Promise<WebSocketLike>
      • Parameters

        • url: string
        • protocols: string | readonly string[] | undefined
        • headers: Readonly<Record<string, string>>

        Returns WebSocketLike | Promise<WebSocketLike>