Commit cb1be38f authored by konovalovsergey's avatar konovalovsergey Committed by Alexander.Trofimov

remove ping

parent 868bf375
...@@ -686,7 +686,6 @@ ...@@ -686,7 +686,6 @@
DocsCoApi.prototype.disconnect = function() { DocsCoApi.prototype.disconnect = function() {
// Отключаемся сами // Отключаемся сами
clearInterval(this.pingIntervalID);
this.isCloseCoAuthoring = true; this.isCloseCoAuthoring = true;
this._send({"type": "close"}); this._send({"type": "close"});
this._state = ConnectionState.ClosedCoAuth; this._state = ConnectionState.ClosedCoAuth;
...@@ -716,10 +715,6 @@ ...@@ -716,10 +715,6 @@
} }
}; };
DocsCoApi.prototype.ping = function() {
this._send({'type': 'ping'});
};
DocsCoApi.prototype._sendPrebuffered = function() { DocsCoApi.prototype._sendPrebuffered = function() {
for (var i = 0; i < this._msgBuffer.length; i++) { for (var i = 0; i < this._msgBuffer.length; i++) {
this._sendRaw(this._msgBuffer[i]); this._sendRaw(this._msgBuffer[i]);
...@@ -1130,8 +1125,6 @@ ...@@ -1130,8 +1125,6 @@
//Send prebuffered //Send prebuffered
this._sendPrebuffered(); this._sendPrebuffered();
this.pingIntervalID = setInterval(function() {t.ping();}, this.pingInterval);
} }
//TODO: Add errors //TODO: Add errors
}; };
...@@ -1149,9 +1142,6 @@ ...@@ -1149,9 +1142,6 @@
this._isAuth = false; this._isAuth = false;
this._documentFormatSave = documentFormatSave; this._documentFormatSave = documentFormatSave;
this.pingInterval = 60 * 1000;
this.pingIntervalID = null;
this._initSocksJs(); this._initSocksJs();
}; };
DocsCoApi.prototype.getDocId = function() { DocsCoApi.prototype.getDocId = function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment