Interface RpcClientTransport
interface RpcClientTransport { onResponse( callback: ( frame: { id: string; ok: boolean; payload: unknown }, ) => void, ): void; send( frame: | { id: string; method: string; payload: unknown; service: string } | { abort: true; id: string }, ): void;} Methods
onResponse
onResponse( callback: (frame: { id: string; ok: boolean; payload: unknown }) => void,): void Parameters
- callback: (frame: { id: string; ok: boolean; payload: unknown }) => void
Returns void
send
send( frame: | { id: string; method: string; payload: unknown; service: string } | { abort: true; id: string },): void Parameters
- frame:
| { id: string; method: string; payload: unknown; service: string }
| { abort: true; id: string }
Returns void
Caller-side transport: delivers caller frames towards the handler and surfaces response frames coming back.