banshee-fr
v0.1.9
Published
Banshee UI connect library
Readme
Banshee UI library
Installation
Install with npm
npm i banshee-frUsage/Examples
import init, { BansheeUI, BuiConnection } from "banshee-fr";
init().then(() => {
// Create new connection instance
const fr = new BansheeUI(BuiConnection.BansheeUiConnectionPortXXXX);
// Listen for messages from the executable
fr.on("fr", (msg) => {
// Print received message to console
console.log(msg);
});
// Emit a message to the backend
fr.emit("bck", `Request backend ${requestCounter}`);
});
