Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v5.0.1/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>