WebSocketService.prototype.createUpgradeRouter(): (request: Request) => Promise<WebSocketUpgradeDecision | null>
The router handed to the HTTP adapter. Matches the request against the route table, applies admission control, and builds the sink the adapter binds its native socket into.
Kept at its public single-parameter shape: the adapter consults it with
the native request alone and has no principal to thread, so an
adapter-side call routes the upgrade as anonymous. A failure is reported
through the logger before it is turned into a 500 refusal, via the same
#routeReported wrapper routeUpgrade uses, so the logging behavior has
one implementation. The adapter-side UpgradeRouterStore also catches,
but it runs inside @setu-ts/runtime, which has no logger and therefore
has nowhere to put the cause — so the only place a routing bug can be made
visible is here, at its source.
(request: Request) => Promise<WebSocketUpgradeDecision | null>
The decision, or null when this is not a WebSocket route