Skip to content
tRPC

Partners

Type Alias: WSConnectionHandlerOptions<TRouter, TClient>

On this page

WSConnectionHandlerOptions<TRouter, TClient>: BaseHandlerOptions<TRouter, IncomingMessage> & CreateContextCallback<inferRouterContext<TRouter>, CreateWSSContextFn<TRouter, TClient>>

Defined in: packages/server/src/adapters/ws.ts:161

The options of getWSConnectionHandler.

Type Parameters

Type ParameterDefault type
TRouter extends AnyTRPCRouter-
TClient extends WSClientWebSocket