Skip to content

writeRequest

function writeRequest(
methodName,
paramsSchema,
params,
protocolVersion?): Uint8Array;

Defined in: src/wire/public.ts:72

Frame a request as a complete IPC stream body for forwarding.

Pass protocolVersion to stamp the application protocol version on the request, so a versioned server’s dispatch-boundary check still sees the originating client’s version. Omit it to emit a request that is structurally exempt from that check (the key is simply absent).

Parameter Type
methodName string
paramsSchema VgiSchema
params Record<string, any>
protocolVersion? string

Uint8Array