WebsocketRouteOptionsValidator
Это содержимое пока не доступно на вашем языке.
Defined in: src/http/websocket/WebsocketRouteOptions.ts:142
Validates the route-only option fields. The per-connection policy knobs
(frame / buffer caps, enums, maxConnections) are validated separately, on
the resolved policy, by WebsocketPolicyOptionsValidator — this validator
covers what does not go through policy resolution: allowedOrigins.
Extends
Section titled “Extends”OptionsValidator<WebsocketRouteOptionsType<TOut,TIn>>
Type Parameters
Section titled “Type Parameters”TOut = unknown
TIn = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebsocketRouteOptionsValidator<
TOut,TIn>():WebsocketRouteOptionsValidator<TOut,TIn>
Defined in: src/http/websocket/WebsocketRouteOptions.ts:144
Returns
Section titled “Returns”WebsocketRouteOptionsValidator<TOut, TIn>
Overrides
Section titled “Overrides”OptionsValidator<WebsocketRouteOptionsType<TOut, TIn>>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:75
Check the (merged) settings; throws OptionsError on the first
violation. Unset (undefined) fields always pass.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
