Documentation
Use
UWebSockets
Interfaces
UpgradeData

Interface: UpgradeData

Defined in: src/use/uWebSockets.ts:25

Data acquired during the HTTP upgrade callback from uWS.

Extended by

Properties

persistedRequest

readonly persistedRequest: PersistedRequest

Defined in: src/use/uWebSockets.ts:35

The initial HTTP upgrade request before the actual socket and connection is established.

uWS’s request is stack allocated and cannot be accessed from outside of the internal upgrade; therefore, the persisted request holds the relevant values extracted from the uWS’s request while it is accessible.