kucservice 1.4.7 → 1.4.8

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.
@@ -2211,6 +2211,8 @@ var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
2211
2211
  this.onclose = function (e) {
2212
2212
  var _this2 = this;
2213
2213
 
2214
+ console.error('webSocket关闭', e);
2215
+
2214
2216
  this._dep.notify('close', e); // 如果WebSocket是非正常关闭 则进行重连
2215
2217
 
2216
2218
 
@@ -11499,7 +11501,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
11499
11501
  Object.assign(this.config, {
11500
11502
  checkData: JSON.stringify(GetSendModel('keeplive', this.config))
11501
11503
  });
11502
- this.socket = common_request_useRequest('websocket')(config);
11504
+ this.socket = common_request_useRequest('websocket')(config, this);
11503
11505
  initWsBaseTheme(this.socket, {
11504
11506
  onOpen: function onOpen(e) {
11505
11507
  // 登录
@@ -11577,6 +11579,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
11577
11579
 
11578
11580
  _classPrivateFieldSet(this, _player, null);
11579
11581
 
11582
+ this.socketTimer && clearTimeout(this.socketTimer);
11580
11583
  (_this$socket2 = this.socket) === null || _this$socket2 === void 0 ? void 0 : _this$socket2.closeSocket(1000, '通知关闭websocket连接');
11581
11584
  this.socket = null;
11582
11585
 
Binary file