# ConnectionManagerOptions
Source: https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionmanageroptions/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:60](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L60)

Configuration options for the ConnectionManager.

## Extends

-   `Partial`<[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/)\>

## Properties

### backoffMultiplier?

> `optional` **backoffMultiplier?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:18](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L18)

Multiplier applied to each successive retry delay.

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`backoffMultiplier`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#backoffmultiplier)

* * *

### circuitBreakerTimeoutMs?

> `optional` **circuitBreakerTimeoutMs?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:20](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L20)

Delay before an open circuit attempts a half-open probe.

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`circuitBreakerTimeoutMs`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#circuitbreakertimeoutms)

* * *

### debug?

> `optional` **debug?**: `boolean`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:62](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L62)

Enable debug logging (default: false)

* * *

### initialDelayMs?

> `optional` **initialDelayMs?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:14](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L14)

Delay before the first retry, in milliseconds.

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`initialDelayMs`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#initialdelayms)

* * *

### initialState?

> `optional` **initialState?**: [`ConnectionManagerState`](https://docs.maelstrom-ai.co/dev/reference/client/type-aliases/connectionmanagerstate/)

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:64](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L64)

Initial state override (default: createInitialConnectionManagerState())

* * *

### maxDelayMs?

> `optional` **maxDelayMs?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:16](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L16)

Upper bound for an individual retry delay, in milliseconds.

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`maxDelayMs`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#maxdelayms)

* * *

### maxRetries?

> `optional` **maxRetries?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:12](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L12)

Maximum connection attempts before the circuit opens. This includes the initial [ConnectionManager.connect](https://docs.maelstrom-ai.co/dev/reference/client/classes/connectionmanager/#connect) attempt and separately caps automatic reconnects after a dropped connection.

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`maxRetries`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#maxretries)

* * *

### sessionId

> **sessionId**: [`SessionId`](https://docs.maelstrom-ai.co/dev/reference/client/type-aliases/sessionid/)

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:66](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L66)

Session ID generated by the Provider/Orchestrator, forwarded to connector.connect().

* * *

### stabilityThresholdMs?

> `optional` **stabilityThresholdMs?**: `number`

Defined in: [packages/client/src/lib/connection-manager/connection-manager.types.ts:41](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/client/src/lib/connection-manager/connection-manager.types.ts#L41)

How long (ms) a connection must stay up before `connectionRetryCount` is reset to 0. A successful `connect()` no longer resets the retry budget immediately — it only proves the connection _opened_, not that it’s usable. A server that accepts a socket and immediately closes it again (a mis-set-up session engine, a rejected handshake) would otherwise reset the counter on every cycle and retry forever without ever exhausting `maxRetries` or opening the circuit breaker. If the connection drops before this elapses, the pending reset is cancelled and the retry count keeps climbing from where it left off — a reconnect that doesn’t survive the window is treated as having failed, not recovered, so it still counts against the retry budget.

Optional — defaults to 5000ms, chosen against the default backoff schedule (`initialDelayMs: 1000`, `backoffMultiplier: 2`): the first three reconnect delays sum to ~1000+2000+4000=7000ms, so a connection that keeps dying immediately after opening never accumulates 5s of uptime between drops and the counter never resets — while a connection that genuinely stays up for 5s is a reasonable bar for “stable.”

#### Inherited from

[`ConnectionOptions`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/).[`stabilityThresholdMs`](https://docs.maelstrom-ai.co/dev/reference/client/interfaces/connectionoptions/#stabilitythresholdms)
