Maintain connection from browser

This commit is contained in:
giongto35 2019-05-13 23:34:06 +08:00
parent a9cc725710
commit 27df07e04d

2
static/js/ws.js vendored
View file

@ -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();
}