From d1a8a52df37b008167f48fd3ce3b0b7e1236c79c Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 13 Sep 2019 22:54:35 +1000 Subject: [PATCH] 1s ping --- client/src/socket.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/socket.jsx b/client/src/socket.jsx index a6a97162..74140922 100644 --- a/client/src/socket.jsx +++ b/client/src/socket.jsx @@ -213,7 +213,7 @@ function createSocket(events) { let pongTimeout; function onPong() { events.setPing(Date.now() - ping); - pongTimeout = setTimeout(sendPing, 10000); + pongTimeout = setTimeout(sendPing, 1000); } // -------------