2019-12-08 19:01:24 +01:00
|
|
|
var Flowee = require('bindings')('flowee')
|
|
|
|
|
|
|
|
|
|
// some fun logging callbacks.
|
|
|
|
|
Flowee.onConnectHub = function(version) {
|
|
|
|
|
console.log("The Hub reported version: " + version)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// some fun logging callbacks.
|
|
|
|
|
Flowee.onConnectIndexer = function(services) {
|
|
|
|
|
console.log("Indexer supports services: " + services)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// connect to the default Flowee server.
|
2019-12-09 14:57:21 +01:00
|
|
|
Flowee.connect().then(function() {
|
|
|
|
|
console.log("connect completed");
|
2019-12-08 19:01:24 +01:00
|
|
|
process.exit();
|
|
|
|
|
})
|
|
|
|
|
|