FreakingGenius - v0.1.0
    Preparing search index...

    Class DeviceState

    Observable singleton store for edge device runtime state.

    DeviceState.getInstance().subscribe((s) => setReactState(s));
    DeviceState.getInstance().setBridgeConnected(true);
    Index

    Constructors

    Methods

    • Records the Unix timestamp of the last received bridge message.

      Parameters

      • timestamp: number

        Unix timestamp in milliseconds.

      Returns void

    • Updates the bridge connection flag and notifies subscribers.

      Parameters

      • connected: boolean

        true when the WebSocket to the tutor is open.

      Returns void