Type alias: WSSHandlerOptions<TRouter>
WSSHandlerOptions: <
TRouter
>BaseHandlerOptions
<TRouter
,IncomingMessage
> &object
extendsinferRouterContext
<TRouter
> ? {createContext
:CreateWSSContextFn
<TRouter
>;} : {createContext
:CreateWSSContextFn
<TRouter
>;} & {process
:NodeJS.Process
;wss
:ws.WebSocketServer
;}
Web socket server handler
WSSHandlerOptions.process
optional
process:NodeJS.Process
WSSHandlerOptions.wss
wss:
ws.WebSocketServer
Type parameters
Parameter |
---|
TRouter extends AnyTRPCRouter |
Source
packages/server/src/adapters/ws.ts:49
Generated using TypeDoc and typedoc-plugin-markdown