Files
js/examples/getBlockCount.js
TomZ 30108aba48 Combine with native JavaScript lib
This starts a native JS lib, taking inspiration for the basics
from the Flowee-JS-pure repo.
Additionally this exposes sending of CMF messages from JS over
the connection already set up in C++.
2020-07-17 23:20:23 +02:00

13 lines
244 B
JavaScript

const Flowee = require('../');
async function main() {
let flowee = new Flowee();
await flowee.connect();
let answer = await flowee.getBlockCount()
console.log(" Current blockCount: " + answer);
process.exit();
}
main();