MachinesState
View as MarkdownDefined in: react/src/state.ts:127
Connected mode: the user’s computers on an Uncage hub. The mode is detected from the server:
a hub serves GET /machines; a local daemon answers 404 ('local'). Until a probe succeeds
(or after a probe failed for another reason) it is 'unknown', which UIs treat like local.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
error? |
UncageClientError |
The last failed loadMachines/loadInstallInfo (cleared by the next success). |
react/src/state.ts:136 |
install? |
InstallInfo |
Install/setup commands (loadInstallInfo). |
react/src/state.ts:134 |
list |
object[] |
- | react/src/state.ts:129 |
loading |
boolean |
- | react/src/state.ts:130 |
mode |
"unknown" | "local" | "connected" |
- | react/src/state.ts:128 |
selectedId? |
string |
The computer new sessions run on (kept while listed; else the first online one). | react/src/state.ts:132 |