mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-23 10:07:30 +00:00
Maintain connection from browser
This commit is contained in:
parent
a9cc725710
commit
27df07e04d
1 changed files with 1 additions and 1 deletions
2
static/js/ws.js
vendored
2
static/js/ws.js
vendored
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue