Pular para o conteúdo
Português (BR)

WebsocketRouteOptionsValidator

Este conteúdo não está disponível em sua língua ainda.

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.

TOut = unknown

TIn = unknown

new WebsocketRouteOptionsValidator<TOut, TIn>(): WebsocketRouteOptionsValidator<TOut, TIn>

Defined in: src/http/websocket/WebsocketRouteOptions.ts:144

WebsocketRouteOptionsValidator<TOut, TIn>

OptionsValidator<WebsocketRouteOptionsType<TOut, TIn>>.constructor

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.

Partial<T>

void

OptionsValidator.validate