From fd87d150698c7920162cb2bd8825bf848020b9b2 Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 18 Jul 2019 20:31:26 +1000 Subject: [PATCH] change 1 line fix everything --- client/src/socket.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/socket.jsx b/client/src/socket.jsx index 8d1e68a5..0f55af96 100644 --- a/client/src/socket.jsx +++ b/client/src/socket.jsx @@ -28,7 +28,7 @@ function createSocket(events) { // Outgoing // ------------- function send(msg) { - if (msg.method !== 'Ping') console.log('outgoing msg', msg); + // if (msg[0] !== 'Ping') console.log('outgoing msg', msg); ws.send(cbor.encode(msg)); } @@ -169,7 +169,7 @@ function createSocket(events) { let pongTimeout; function onPong() { events.setPing(Date.now() - ping); - pongTimeout = setTimeout(sendPing, 1000); + // pongTimeout = setTimeout(sendPing, 1000); } // -------------