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.
Methods
Section titled “Methods”acknowledge()
Section titled “acknowledge()”acknowledge(
id?):void
Defined in: console-sdk/src/device/deviceModel.ts:409
Acknowledge one device (omit id to acknowledge all).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setEnabled()
Section titled “setEnabled()”setEnabled(
on):Promise<void>
Defined in: console-sdk/src/device/deviceModel.ts:402
Sets and persists the global switch.
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Promise<void>
Properties
Section titled “Properties”enabled
Section titled “enabled”enabled:
boolean
Defined in: console-sdk/src/device/deviceModel.ts:400
Global switch (mirrors the config default; persisted).
isSettling
Section titled “isSettling”isSettling:
boolean
Defined in: console-sdk/src/device/deviceModel.ts:411
true while any reconnect/connect attempts are in flight.
recentlyReconnected
Section titled “recentlyReconnected”recentlyReconnected: readonly
ReconnectedEntry[]
Defined in: console-sdk/src/device/deviceModel.ts:407
Devices whose current ready connection has via === 'auto-reconnect'
and is unacknowledged.