WebsocketUpgradeInfo
WebsocketUpgradeInfo =
object
Defined in: src/http/websocket/types.ts:20
Snapshot of the HTTP upgrade request, exposed on every connection so handlers can read the path, params, query, headers and negotiated subprotocol without holding a backend-specific request object.
Properties
Section titled “Properties”headers
Section titled “headers”
readonlyheaders:Readonly<Record<string,string>>
Defined in: src/http/websocket/types.ts:25
params
Section titled “params”
readonlyparams:Readonly<Record<string,string>>
Defined in: src/http/websocket/types.ts:23
Path parameters extracted from /room/:id-style patterns.
readonlypath:string
Defined in: src/http/websocket/types.ts:21
readonlyquery:Readonly<Record<string,string|string[] |undefined>>
Defined in: src/http/websocket/types.ts:24
remoteAddress?
Section titled “remoteAddress?”
readonlyoptionalremoteAddress?:string
Defined in: src/http/websocket/types.ts:27
Remote peer address as the server saw it (not x-forwarded-for).
subprotocol?
Section titled “subprotocol?”
readonlyoptionalsubprotocol?:string
Defined in: src/http/websocket/types.ts:29
Negotiated Sec-WebSocket-Protocol, if any.
