Skip to main content

Type Alias: WsUpgradeAuthResult

WsUpgradeAuthResult = object

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

Result returned by a pre-upgrade WebSocket auth function.

Properties

authPayload?

optional authPayload?: any

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


authToken?

optional authToken?: string

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


reject?

optional reject?: boolean

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

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:101