Skip to content

Instantly share code, notes, and snippets.

@stephendeyoung
Last active May 25, 2017 09:57
Show Gist options
  • Save stephendeyoung/655ee08c76d1b349fdd2225657145b72 to your computer and use it in GitHub Desktop.
Save stephendeyoung/655ee08c76d1b349fdd2225657145b72 to your computer and use it in GitHub Desktop.
console.log('hey')
EVT.use(EVT.Hub);
app.getAvailableHubs().then(function(hubs) {
console.log('hey2');
EVT.Hub.setup({
targetHub: hubs[0],
remote: false
});
// app.thng().read().then(function(localThngs) {
// console.log('getAvailableHubs: ' + localThngs);
//}).catch(err => console.error(err));
}).catch(err => console.error(err));
function onThngPropertiesChanged(event) {
// Fetch local things via hubs[0]
app.thng().read().then(function(localThngs) {
console.log('onThngPropertiesChanged: ' + localThngs);
}).catch(err => console.error(err));
}
exports.onThngPropertiesChanged = onThngPropertiesChanged;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment