Skip to content

AutoReconnectState

Defined in: console-sdk/src/device/deviceModel.ts:398

The result of useAutoReconnect (SDK_PLAN.md §3.6.3). Reconnected facts are derived from state (ready connections whose via is 'auto-reconnect' and are unacknowledged), and isSettling deletes the last excuse for consumer settle-polling.

acknowledge(id?): void

Defined in: console-sdk/src/device/deviceModel.ts:409

Acknowledge one device (omit id to acknowledge all).

DeviceId

void


setEnabled(on): Promise<void>

Defined in: console-sdk/src/device/deviceModel.ts:402

Sets and persists the global switch.

boolean

Promise<void>

enabled: boolean

Defined in: console-sdk/src/device/deviceModel.ts:400

Global switch (mirrors the config default; persisted).


isSettling: boolean

Defined in: console-sdk/src/device/deviceModel.ts:411

true while any reconnect/connect attempts are in flight.


recentlyReconnected: readonly ReconnectedEntry[]

Defined in: console-sdk/src/device/deviceModel.ts:407

Devices whose current ready connection has via === 'auto-reconnect' and is unacknowledged.