Skip to content
tRPC

Partners

Type Alias: WebSocketLinkOptions<TRouter>

On this page

WebSocketLinkOptions<TRouter>: object & TransformerOptions<inferClientTypes<TRouter>>

Defined in: packages/client/dist/wsLink-Cjetil1Z.d.mts:294

Options for wsLink.

Type declaration

client

client: TRPCWebSocketClient

The client made with createWSClient.

Type Parameters

Type Parameter
TRouter extends AnyRouter

See

https://trpc.io/docs/client/links/wsLink#wslink--createwsclient-options