banshee-fr
v0.1.8
Published
Banshee frontend connect library
Downloads
4
Readme
Banshee frontend library
Installation
Install with npm
npm i banshee-fr
Usage/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}`);
});