Skip to content

SessionDeviceState

Defined in: console-sdk/src/session/types.ts:373

The live view of one session device (SDK_PLAN.md §3.6.5). link is the session’s degraded-not-dead view of the fleet connection: a reconnecting fleet device is still part of the workout (link: 'reconnecting'), and only an exhausted link is 'lost'.

deviceId: DeviceId

Defined in: console-sdk/src/session/types.ts:375

The device driving this role.


link: "ready" | "reconnecting" | "lost"

Defined in: console-sdk/src/session/types.ts:379

Session view of the connection (degraded model).


role: Modality

Defined in: console-sdk/src/session/types.ts:377

The modality this device fills in the session.


splits: readonly Split[]

Defined in: console-sdk/src/session/types.ts:383

Splits committed so far.


totals: DeviceTotals

Defined in: console-sdk/src/session/types.ts:381

Running totals, immutable per snapshot.