# Type Alias: TRPCClientIncomingMessage<TResult, TError>

> 

> **TRPCClientIncomingMessage**\<`TResult`, `TError`\>: [`TRPCClientIncomingRequest`](https://trpc.io/docs/typedoc/server/rpc/type-aliases/TRPCClientIncomingRequest.md) \| [`TRPCResponseMessage`](https://trpc.io/docs/typedoc/server/rpc/type-aliases/TRPCResponseMessage.md)\<`TResult`, `TError`\>

Defined in: [packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts:178](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/unstable-core-do-not-import/rpc/envelopes.ts#L178)

Any message a WebSocket client receives.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `TResult` | `unknown` |
| `TError` *extends* [`TRPCErrorShape`](https://trpc.io/docs/typedoc/server/index/interfaces/TRPCErrorShape.md) | [`TRPCErrorShape`](https://trpc.io/docs/typedoc/server/index/interfaces/TRPCErrorShape.md) |

## See

https://trpc.io/docs/server/websockets#websockets-rpc-specification
