README
@chrysalis/focus
This is the heart of the Chrysalis libraries, the one thing that binds
everything together. It implements the Focus
protocol used by
Kaleidoscope for bi-directional communication, and on top of that, it
provides hooks and methods to build complex applications on top.
import Focus from "@chrysalis/focus";
import { Model01 } from "@chrysalis/hardware-keyboardio-model01";
let focus = new Focus();
focus.open(Model01).then(() => {
focus.command("help").then((response) => {
console.log(response);
});
});