From be72be6ab0de460161f0811d13d4cb2391c84494 Mon Sep 17 00:00:00 2001 From: Evgeny Zemtsov Date: Fri, 5 Jul 2019 11:45:00 +0200 Subject: [PATCH] Fix client messages --- web/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/index.js b/web/index.js index eb0158e..06836c6 100644 --- a/web/index.js +++ b/web/index.js @@ -155,13 +155,13 @@ function msgMove(row, col, token) { }; } -function msgConnect(name, mode, session) { +function msgConnect(playerName, mode, session) { return { method: 'Connect', resource: { - playerName: name, - mode: mode, - session: session + playerName, + mode, + session } }; }