• Abort an ongoing request using the response promise.

    Parameters

    • responsePromise: Promise<any>

    Returns void

    Example

    import { createJsonRpcClient, abortJsonRpcRequest } from "@ckb-cobuild/jsonrpc-client";
    const client = createJsonRpcClient<AddService>("http://127.0.0.1:3000");
    const resp = client.add(1, 2);
    abortJsonRpcRequest(resp);

Generated using TypeDoc