30108aba48
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++.
13 lines
244 B
JavaScript
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();
|