Skip to content

WebSocketUpgrade

type WebSocketUpgrade = unknown

Read-only view of the HTTP request behind one WebSocket upgrade, handed to the upgrade hook. This is the only WS moment with request context: after it, the handshake completes and handlers see the connection, never the request. Constructed per upgrade by the transport (never per message).

Learn: Overview