WebsocketClientOptionsType
Это содержимое пока не доступно на вашем языке.
Defined in: src/http/websocket/WebsocketClientOptions.ts:36
Plain options-object shape accepted by a WebsocketClientActor.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TOut = unknown
TIn = unknown
Properties
Section titled “Properties”circuitBreaker?
Section titled “circuitBreaker?”
readonlyoptionalcircuitBreaker?:object
Defined in: src/io/broker/BrokerOptions.ts:48
Optional circuit-breaker around connectImplementation. After
failureThreshold consecutive failed connect attempts the breaker
opens for resetMs and rejects new attempts immediately.
failureThreshold
Section titled “failureThreshold”
readonlyfailureThreshold:number
resetMs
Section titled “resetMs”
readonlyresetMs:number
Inherited from
Section titled “Inherited from”BrokerCommonOptionsType.circuitBreaker
codec?
Section titled “codec?”
readonlyoptionalcodec?:WebsocketCodec<TOut,TIn>
Defined in: src/http/websocket/WebsocketClientOptions.ts:41
Wire codec. Default: jsonCodec<TOut, TIn>().
maxFrameBytes?
Section titled “maxFrameBytes?”
readonlyoptionalmaxFrameBytes?:number
Defined in: src/http/websocket/WebsocketClientOptions.ts:43
Inbound frame size cap; oversize frames are dropped with a warning. Default 1 MiB.
onInvalidMessage?
Section titled “onInvalidMessage?”
readonlyoptionalonInvalidMessage?:"disconnect"|"drop"|"hook"
Defined in: src/http/websocket/WebsocketClientOptions.ts:45
What to do with an inbound frame the codec can’t decode. Default ‘drop’.
outboundBuffer?
Section titled “outboundBuffer?”
readonlyoptionaloutboundBuffer?:number
Defined in: src/io/broker/BrokerOptions.ts:61
Maximum number of outbound messages buffered while the connection
is connecting or disconnected. When the buffer is full the
oldest message is dropped (FIFO eviction) and a
BrokerBufferOverflow event is published. Default: 1000. Set
to 0 to fail-fast (publish a BrokerNotConnected event and drop
the message).
Inherited from
Section titled “Inherited from”BrokerCommonOptionsType.outboundBuffer
pingIntervalMs?
Section titled “pingIntervalMs?”
readonlyoptionalpingIntervalMs?:number
Defined in: src/http/websocket/WebsocketClientOptions.ts:47
Send a ping every pingIntervalMs to keep the connection alive. Default: disabled.
protocols?
Section titled “protocols?”
readonlyoptionalprotocols?:string| readonlystring[]
Defined in: src/http/websocket/WebsocketClientOptions.ts:39
reconnect?
Section titled “reconnect?”
readonlyoptionalreconnect?:false| {factor?:number;initialDelayMs?:number;maxAttempts?:number;maxDelayMs?:number; }
Defined in: src/io/broker/BrokerOptions.ts:35
Reconnect strategy applied when the underlying connection drops or
connectImplementation throws. Default: exponential backoff starting at
200ms, doubling, capped at 30s, infinite attempts. Set to
false to disable auto-reconnect (one-shot connections).
Union Members
Section titled “Union Members”false
Type Literal
Section titled “Type Literal”{ factor?: number; initialDelayMs?: number; maxAttempts?: number; maxDelayMs?: number; }
factor?
Section titled “factor?”
readonlyoptionalfactor?:number
initialDelayMs?
Section titled “initialDelayMs?”
readonlyoptionalinitialDelayMs?:number
maxAttempts?
Section titled “maxAttempts?”
readonlyoptionalmaxAttempts?:number
Cap on retry attempts. Default: Infinity (retry forever).
maxDelayMs?
Section titled “maxDelayMs?”
readonlyoptionalmaxDelayMs?:number
Inherited from
Section titled “Inherited from”BrokerCommonOptionsType.reconnect
readonlyoptionalurl?:string
Defined in: src/http/websocket/WebsocketClientOptions.ts:38
WebSocket URL (ws://… or wss://…). Required (ctor or HOCON).
