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