Documentation
Use
UWebSockets
Interfaces
Extra

Interface: Extra

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

The extra that will be put in the Context.

Extends

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.

Inherited from

UpgradeData.persistedRequest


socket

readonly socket: WebSocket<unknown> & UpgradeData

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

The actual socket connection between the server and the client with the upgrade data.