Last active
May 25, 2017 09:57
-
-
Save stephendeyoung/655ee08c76d1b349fdd2225657145b72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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