Merge branch 'develop' of ssh://mnml.gg:40022/~/mnml into develop

This commit is contained in:
ntr 2019-07-18 20:41:56 +10:00
commit 67e0bb7c15

View File

@ -28,7 +28,7 @@ function createSocket(events) {
// Outgoing
// -------------
function send(msg) {
if (msg.method !== 'Ping') console.log('outgoing msg', msg);
// if (msg[0] !== 'Ping') console.log('outgoing msg', msg);
ws.send(cbor.encode(msg));
}
@ -169,7 +169,7 @@ function createSocket(events) {
let pongTimeout;
function onPong() {
events.setPing(Date.now() - ping);
pongTimeout = setTimeout(sendPing, 1000);
// pongTimeout = setTimeout(sendPing, 1000);
}
// -------------