Abort an ongoing request using the response promise.
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); Copy
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
Abort an ongoing request using the response promise.