This commit is contained in:
ntr 2018-11-30 00:15:20 +11:00
parent d9470fa74d
commit b3823388ba
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,6 @@ class GameList extends Phaser.GameObjects.Group {
return ws.sendGameJoinableList(); return ws.sendGameJoinableList();
}); });
return true; return true;
} }

View File

@ -197,6 +197,8 @@ function createSocket(events) {
const blob = new Uint8Array(event.data); const blob = new Uint8Array(event.data);
const res = cbor.decode(blob); const res = cbor.decode(blob);
console.log(res);
// check for error and split into response type and data // check for error and split into response type and data
if (res.err) return errorToast(res.err); if (res.err) return errorToast(res.err);
const { method, params } = res; const { method, params } = res;