Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/typed_rpc/src/client.ts>RpcTransport

Lightweight JSON-RPC solution for TypeScript projects
Go to Latest
type alias RpcTransport
import { type RpcTransport } from "https://deno.land/x/typed_rpc@v4.2.2/src/client.ts";

Interface for custom transports. Implementations are expected to serialize the given request and return an object that is a JsonRpcResponse.

definition: (req: JsonRpcRequest, abortSignal: AbortSignal) => Promise<JsonRpcResponse>