Commit d2bc0f7b authored by konovalovsergey's avatar konovalovsergey

remove ping

parent ad4b8b94
......@@ -710,7 +710,6 @@
DocsCoApi.prototype.disconnect = function() {
// Отключаемся сами
clearInterval(this.pingIntervalID);
this.isCloseCoAuthoring = true;
this._send({"type": "close"});
this._state = ConnectionState.ClosedCoAuth;
......@@ -740,10 +739,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]);
......@@ -1154,8 +1149,6 @@
//Send prebuffered
this._sendPrebuffered();
this.pingIntervalID = setInterval(function() {t.ping();}, this.pingInterval);
}
//TODO: Add errors
};
......@@ -1173,9 +1166,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