Skip to content
tRPC

Partners

Type Alias: TRPCResponseMessage<TData, TError>

On this page

TRPCResponseMessage<TData, TError>: object & TRPCErrorResponse<TError> | TRPCResultMessage<TData>

Defined in: packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:153

A response sent over WebSockets, with the id of the call it answers.

Type declaration

id

id: RequestId

Type Parameters

Type ParameterDefault type
TDataunknown
TError extends TRPCErrorShapeTRPCErrorShape

See

https://trpc.io/docs/server/websockets#response