Is Hub Connected

If the user's hub is connected to the app

const onIsHubConnectedChange = (value: boolean, timestamp?: Date) => {
    console.log(value, timestamp);
};


COBI.app.isHubConnected.read(onIsHubConnectedChange); // Instantly get the current value
COBI.app.isHubConnected.subscribe(onIsHubConnectedChange);
COBI.app.isHubConnected.unsubscribe(onIsHubConnectedChange);
pagePlacemark

Last updated