Function openHttp

  • Open a Hrana client over HTTP connected to the given url.

    If the customFetch argument is passed and not undefined, it is used in place of the fetch function from cross-fetch. This function is always called with a Request object from cross-fetch.

    Parameters

    • url: string | URL
    • Optional jwt: string
    • Optional customFetch: unknown
    • protocolVersion: ProtocolVersion = 2

    Returns HttpClient

Generated using TypeDoc