Commit d2bc0f7b authored by konovalovsergey's avatar konovalovsergey

remove ping

parent ad4b8b94
...@@ -710,7 +710,6 @@ ...@@ -710,7 +710,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;
...@@ -740,10 +739,6 @@ ...@@ -740,10 +739,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]);
...@@ -1154,8 +1149,6 @@ ...@@ -1154,8 +1149,6 @@
//Send prebuffered //Send prebuffered
this._sendPrebuffered(); this._sendPrebuffered();
this.pingIntervalID = setInterval(function() {t.ping();}, this.pingInterval);
} }
//TODO: Add errors //TODO: Add errors
}; };
...@@ -1173,9 +1166,6 @@ ...@@ -1173,9 +1166,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