From b3823388ba67cd8ed278ec04cdf4e3d5d4981376 Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 30 Nov 2018 00:15:20 +1100 Subject: [PATCH] log res --- client/src/scenes/game.list.js | 1 - client/src/socket.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/scenes/game.list.js b/client/src/scenes/game.list.js index 31f9c51f..51df21ca 100644 --- a/client/src/scenes/game.list.js +++ b/client/src/scenes/game.list.js @@ -86,7 +86,6 @@ class GameList extends Phaser.GameObjects.Group { return ws.sendGameJoinableList(); }); - return true; } diff --git a/client/src/socket.js b/client/src/socket.js index 648ec9da..f1eda9fd 100644 --- a/client/src/socket.js +++ b/client/src/socket.js @@ -197,6 +197,8 @@ function createSocket(events) { const blob = new Uint8Array(event.data); const res = cbor.decode(blob); + console.log(res); + // check for error and split into response type and data if (res.err) return errorToast(res.err); const { method, params } = res;