Returns an immutable snapshot of the current state.
A readonly copy of DeviceStateSnapshot.
Increments the stroke counter by one. Call this each time StrokeCapture emits a completed stroke.
Records the Unix timestamp of the last received bridge message.
Unix timestamp in milliseconds.
Updates the bridge connection flag and notifies subscribers.
true when the WebSocket to the tutor is open.
Records the device hardware capabilities reported on start-up.
The BridgeCapabilities to store.
Registers a subscriber that is notified on every state change.
Invoked with the new DeviceStateSnapshot after each mutation.
An unsubscribe function — call it to remove the listener.
StaticgetReturns the singleton DeviceState instance, creating it if necessary.
The global DeviceState singleton.
Observable singleton store for edge device runtime state.