Skip to main content

Type Alias: WsUpgradeAuthResult

WsUpgradeAuthResult = object

Defined in: service-core/src/http/MiddlewareChain.ts:104

Result returned by a pre-upgrade WebSocket auth function.

Properties​

authPayload?​

optional authPayload?: any

Defined in: service-core/src/http/MiddlewareChain.ts:106


authToken?​

optional authToken?: string

Defined in: service-core/src/http/MiddlewareChain.ts:107


reject?​

optional reject?: boolean

Defined in: service-core/src/http/MiddlewareChain.ts:109

Set to true to reject the connection with HTTP 401 before the WebSocket handshake.


user?​

optional user?: any

Defined in: service-core/src/http/MiddlewareChain.ts:105