A basic device

This commit is contained in:
2019-06-27 00:45:03 +02:00
parent 5d3d55977b
commit 0295ec5a88
4 changed files with 65 additions and 11 deletions

View File

@@ -19,6 +19,8 @@ class BrowserMod {
callback(msg) {
console.log("Got ws message");
console.log(msg);
if(msg.command === "update")
this.update();
}
update() {
@@ -26,7 +28,11 @@ class BrowserMod {
this.conn.sendMessage({
type: 'browser_mod/update',
deviceID: deviceID,
browser: {},
player: {
state: "idle",
},
});
}