kucservice 1.3.9 → 1.4.1

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.
@@ -2100,6 +2100,8 @@ var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
2100
2100
 
2101
2101
 
2102
2102
  if (e.code !== CLOSE_ABNORMAL) {
2103
+ var _this$self;
2104
+
2103
2105
  // if (this._reconnectCount < this.heartCheckCount) {
2104
2106
  this._reconnectCount++;
2105
2107
  var optionsClone = deepClone(this._currentOptions); // 只有初次连接成功 重连时才传递参数
@@ -2108,7 +2110,7 @@ var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
2108
2110
  optionsClone.query.type = 'reconnect';
2109
2111
  }
2110
2112
 
2111
- this.self.socketTimer && clearTimeout(this.self.socketTimer);
2113
+ ((_this$self = this.self) === null || _this$self === void 0 ? void 0 : _this$self.socketTimer) && clearTimeout(this.self.socketTimer);
2112
2114
  this.self.socketTimer = setTimeout(function () {
2113
2115
  var _socket = new Socket(optionsClone, _this2._dep, _this2._reconnectCount, _this2.self);
2114
2116
 
Binary file