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

View File

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