Variable SerialSessionStateConst
SerialSessionState: {
Connected: "connected";
Connecting: "connecting";
Disconnecting: "disconnecting";
Error: "error";
Idle: "idle";
Unsupported: "unsupported";
} = ...
Type Declaration
ReadonlyConnected: "connected"
ReadonlyConnecting: "connecting"
ReadonlyDisconnecting: "disconnecting"
ReadonlyError: "error"
ReadonlyIdle: "idle"
ReadonlyUnsupported: "unsupported"
Reactive lifecycle state for a SerialSession.
This is the v2 API counterpart of the legacy
SerialStateused bySerialClient. The runtime values are the same flat strings v1 consumers used for UI switches; the SerialSessionState const object is the canonical source of those literals so call sites can avoid string typos and get IDE completion.Lifecycle transitions: