Skip to content

DeviceActions

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

Per-device actions (SDK_PLAN.md §3.6.3): the whole legacy 5-function blocklist protocol collapsed to three verbs. All are async-rejecting.

disconnect(options?): Promise<void>

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

Deliberate disconnect ⇒ session-scoped reconnect suppression internally. Pass { autoReconnect: false } to also persist the per-device opt-out at the call site.

boolean

Promise<void>


forget(): Promise<void>

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

Removes persistence and auto-reconnect eligibility.

Promise<void>


setAutoReconnect(enabled): Promise<void>

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

The whole 5-function protocol, now one boolean.

boolean

Promise<void>