@seafile/sdoc-editor 2.0.127 → 2.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,6 +62,11 @@ var SocketClient = /*#__PURE__*/(0, _createClass2["default"])(function SocketCli
62
62
  socketManager.dispatchConnectState('reconnect_error');
63
63
  });
64
64
  (0, _defineProperty2["default"])(this, "onDisconnected", function (data) {
65
+ if (data === 'ping timeout') {
66
+ (0, _debug.clientDebug)('Disconnected due to ping timeout, trying to reconnect...');
67
+ _this.socket.connect();
68
+ return;
69
+ }
65
70
  (0, _debug.clientDebug)('disconnect message: %s', data);
66
71
  var socketManager = _socketManager["default"].getInstance();
67
72
  socketManager.dispatchConnectState('disconnect');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.127",
3
+ "version": "2.0.128",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "fadcfb916d934dc56ea439ca0221f9ff08e59563"
73
+ "gitHead": "09b94c721a5b5b52ad8bcbd680a9001acf3f7077"
74
74
  }