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

remove ping

parent 868bf375
......@@ -686,7 +686,6 @@
DocsCoApi.prototype.disconnect = function() {
// Отключаемся сами
clearInterval(this.pingIntervalID);
this.isCloseCoAuthoring = true;
this._send({"type": "close"});
this._state = ConnectionState.ClosedCoAuth;
......@@ -716,10 +715,6 @@
}
};
DocsCoApi.prototype.ping = function() {
this._send({'type': 'ping'});
};
DocsCoApi.prototype._sendPrebuffered = function() {
for (var i = 0; i < this._msgBuffer.length; i++) {
this._sendRaw(this._msgBuffer[i]);
......@@ -1130,8 +1125,6 @@
//Send prebuffered
this._sendPrebuffered();
this.pingIntervalID = setInterval(function() {t.ping();}, this.pingInterval);
}
//TODO: Add errors
};
......@@ -1149,9 +1142,6 @@
this._isAuth = false;
this._documentFormatSave = documentFormatSave;
this.pingInterval = 60 * 1000;
this.pingIntervalID = null;
this._initSocksJs();
};
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