Fix websocket event name

Fixes #798

// FREEBIE
This commit is contained in:
lilia 2016-05-23 14:12:32 -07:00
parent 814328b12c
commit 331ca46d75
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}

View file

@ -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));
}