Fix websocket event name

Fixes #798

// FREEBIE
pull/749/head
lilia 9 years ago
parent 814328b12c
commit 331ca46d75

@ -37164,7 +37164,7 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
disconnect : opts.keepalive.disconnect
});
var resetKeepAliveTimer = keepalive.reset.bind(keepalive);
socket.addEventListener('connect', resetKeepAliveTimer);
socket.addEventListener('open', resetKeepAliveTimer);
socket.addEventListener('message', resetKeepAliveTimer);
socket.addEventListener('close', keepalive.stop.bind(keepalive));
}

@ -135,7 +135,7 @@
disconnect : opts.keepalive.disconnect
});
var resetKeepAliveTimer = keepalive.reset.bind(keepalive);
socket.addEventListener('connect', resetKeepAliveTimer);
socket.addEventListener('open', resetKeepAliveTimer);
socket.addEventListener('message', resetKeepAliveTimer);
socket.addEventListener('close', keepalive.stop.bind(keepalive));
}

Loading…
Cancel
Save