Skip to main content
Version: 11.x

Function: wsLink()

wsLink<TRouter>(opts): TRPCLink<TRouter>

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
optsWebSocketLinkOptions<TRouter>

Returns

TRPCLink<TRouter>

See

https://trpc.io/docs/v11/client/links/wsLink

Deprecated

🙋‍♂️ Contributors needed to continue supporting WebSockets! See https://github.com/trpc/trpc/issues/6109

Defined in

packages/client/dist/links/wsLink.d.ts:123