Interface: RequestWS
Defined in: service-core/src/http/uWS/WebSocket.ts:15
HTTP request type for handling WebSocket upgrade requests.
Extends HttpRequest with WebSocket-specific properties set by the router
after the WebSocket connection is opened.
Extends
Indexable
[
key:string]:any
Allow arbitrary per-request properties (e.g. req.websocket, req.wsHandled).
Properties
authPayload?
optionalauthPayload?:any
Defined in: service-core/src/http/types.ts:31
Full decoded JWT payload, set by JWT auth middleware.
Inherited from
authToken?
optionalauthToken?:string
Defined in: service-core/src/http/types.ts:33
Raw JWT token string, set by JWT auth middleware.
Inherited from
body
body:
any
Defined in: service-core/src/http/types.ts:17
Inherited from
cookies
cookies:
Record<string,string>
Defined in: service-core/src/http/types.ts:19
Inherited from
headers
headers:
Record<string,string|string[] |undefined>
Defined in: service-core/src/http/types.ts:14
Inherited from
method
method:
string
Defined in: service-core/src/http/types.ts:11
Inherited from
params
params:
Record<string,string>
Defined in: service-core/src/http/types.ts:15
Inherited from
path
path:
string
Defined in: service-core/src/http/types.ts:12
Inherited from
query
query:
Record<string,string|string[]>
Defined in: service-core/src/http/types.ts:16
Inherited from
rawBody?
optionalrawBody?:Buffer<ArrayBufferLike>
Defined in: service-core/src/http/types.ts:18
Inherited from
session?
optionalsession?:Record<string,any>
Defined in: service-core/src/http/types.ts:25
Populated by the optional session middleware (see SessionManager). Undefined when no
session middleware is registered (i.e. the session config block is absent).
Inherited from
signedCookies
signedCookies:
Record<string,string>
Defined in: service-core/src/http/types.ts:20
Inherited from
socket
socket:
object
Defined in: service-core/src/http/types.ts:27
Minimal socket interface; populated with remote address for IP extraction.
remoteAddress?
optionalremoteAddress?:string
Inherited from
url
url:
string
Defined in: service-core/src/http/types.ts:13
Inherited from
user?
optionaluser?:any
Defined in: service-core/src/http/types.ts:29
Set by JWT auth middleware after successful token verification.
Inherited from
websocket
websocket:
IWebSocketShim|undefined
Defined in: service-core/src/http/uWS/WebSocket.ts:19
The WebSocket shim for this connection. Set on open after the upgrade.
wsHandled
wsHandled:
boolean
Defined in: service-core/src/http/uWS/WebSocket.ts:26
Indicates that the WebSocket handler has processed this connection and the
connection should remain open. Set to true by wrapMiddleware when a
decorated handler returns successfully.