From 34fd17c145c80ed55d6ea81a02f67d76bd7739ac Mon Sep 17 00:00:00 2001 From: Dmitry Golubkov Date: Sat, 10 Dec 2022 18:54:29 +0300 Subject: [PATCH] Remove console.log output. --- src/app.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/app.js b/src/app.js index a85b24a..1b4ebc1 100644 --- a/src/app.js +++ b/src/app.js @@ -118,15 +118,12 @@ }); this.socket.addEventListener("open", (event) => { - console.log("WebSocket connection is open.", event); - // Init backend auto-ping, to keep connectoion alive. this.keepAliveEmitter = setInterval(() => { let msg = JSON.stringify({ type: MESSAGE_TYPE.PING, playerId: this.playerId, }); - console.log("<-- send message", msg); this.socket.send(msg); }, 5000); @@ -136,11 +133,9 @@ type: MESSAGE_TYPE.STATE_REQUEST, }); this.socket.send(msg); - console.log(msg); }); this.socket.addEventListener("message", (messageEvent) => { - console.log("--> get message", messageEvent.data); let message = JSON.parse(messageEvent.data); // If another player requested our STATE - send it.