From 27df07e04db2e6bd22ae1fb0cb1829a2ccb94922 Mon Sep 17 00:00:00 2001 From: giongto35 Date: Mon, 13 May 2019 23:34:06 +0800 Subject: [PATCH] Maintain connection from browser --- static/js/ws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ws.js b/static/js/ws.js index 89d91b3c..96629aed 100644 --- a/static/js/ws.js +++ b/static/js/ws.js @@ -10,7 +10,7 @@ conn = new WebSocket(`ws://${location.host}/ws`); conn.onopen = () => { log("WebSocket is opened. Send ping"); log("Send ping pong frequently") - // pingpongTimer = setInterval(sendPing, 1000 / PINGPONGPS) + pingpongTimer = setInterval(sendPing, 1000 / PINGPONGPS) startWebRTC(); }