ConnectionStatus: {
    Connected: "Connected";
    Connecting: "Connecting";
    Disconnected: "Disconnected";
    NoAuthorizedDevice: "NoAuthorizedDevice";
    Paused: "Paused";
} = ...

Tracks connection status.

Type declaration

  • ReadonlyConnected: "Connected"

    Connected.

  • ReadonlyConnecting: "Connecting"

    Connecting.

  • ReadonlyDisconnected: "Disconnected"

    Authorized device available but we haven't connected to it.

  • ReadonlyNoAuthorizedDevice: "NoAuthorizedDevice"

    No device available.

    This is the initial status and will be the case even when a device is physically connected but has not been connected via the browser security UI.

    Use checkAvailability() to determine whether the connection type is supported before attempting to connect.

  • ReadonlyPaused: "Paused"

    Paused due to tab visibility. The connection was temporarily suspended because the browser tab became hidden. Reconnection will be attempted automatically when the tab becomes visible again.