@d3x0r/sack-gui
Version:
SACK abstraction library exposed to JS to provide low level system services.
21 lines (14 loc) • 375 B
JavaScript
import {Protocol as Protocol_} from "/node_modules/sack.vfs/apps/http-ws/client-protocol.js"
class Protocol extends Protocol_ {
static ws = null;
constructor(){
super( "xkb-editor" );
//this.on( "dir", ( message )
}
load() {
// results with a "dir" event (?)
this.send( "{op:load}" );
}
}
export const protocol = new Protocol();
export default protocol;