mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Updated client
heartbitTimeout > heartbeatTimeout
This commit is contained in:
Submodule example/client updated: ad76f786b4...7a5e2b8cac
@@ -111,7 +111,7 @@ Client.prototype._heartbeat = function(){
|
||||
var self = this;
|
||||
setTimeout(function(){
|
||||
self.send('~h~' + ++self._heartbeats);
|
||||
self._heartbitTimeout = setTimeout(function(){
|
||||
self._heartbeatTimeout = setTimeout(function(){
|
||||
self._onClose();
|
||||
}, self.options.timeout);
|
||||
}, self.options.heartbeatInterval);
|
||||
@@ -119,7 +119,7 @@ Client.prototype._heartbeat = function(){
|
||||
|
||||
Client.prototype._onHeartbeat = function(h){
|
||||
if (h == this._heartbeats){
|
||||
clearTimeout(this._heartbitTimeout);
|
||||
clearTimeout(this._heartbeatTimeout);
|
||||
this._heartbeat();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user