put ping back

This commit is contained in:
ntr 2019-07-21 20:41:41 +10:00
parent e63d946e60
commit 627653924b
2 changed files with 3 additions and 5 deletions

View File

@ -39,6 +39,8 @@
*CLIENT*
fix info highlighting
theme toasts
mobile info page
@ -50,12 +52,8 @@ reconnect based on time delta
consolidate game and instance
do not allow vbox actions for finished instances
cause of logging
*SERVER*
* push events
* test rust-ws w/ hyper upgrade
* tx middleware

View File

@ -169,7 +169,7 @@ function createSocket(events) {
let pongTimeout;
function onPong() {
events.setPing(Date.now() - ping);
// pongTimeout = setTimeout(sendPing, 1000);
pongTimeout = setTimeout(sendPing, 1000);
}
// -------------