• Performs a Kos WebSocket fetch operation, providing fetch-like behavior over a WebSocket transport.

    Parameters

    • url: string

      The URL to fetch from.

    • Optional options: KosFetchOptions

      The Kos fetch options.

    Returns Promise<Response>

    A promise that resolves to the response from the server.

    Async

    Throws

    TimeoutError if the request times out.

    Throws

    AbortError if the request is aborted via signal.