log res
This commit is contained in:
parent
d9470fa74d
commit
b3823388ba
@ -86,7 +86,6 @@ class GameList extends Phaser.GameObjects.Group {
|
|||||||
return ws.sendGameJoinableList();
|
return ws.sendGameJoinableList();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user