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.
- package/dist/kucservice.common.js +4 -1
- package/dist/kucservice.common.js.gz +0 -0
- package/dist/kucservice.common.js.map +1 -1
- package/dist/kucservice.umd.js +4 -1
- package/dist/kucservice.umd.js.gz +0 -0
- package/dist/kucservice.umd.js.map +1 -1
- package/dist/kucservice.umd.min.js +1 -1
- package/dist/kucservice.umd.min.js.gz +0 -0
- package/dist/kucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/kucservice.umd.js
CHANGED
|
@@ -2220,6 +2220,8 @@ var websocket_Socket = /*#__PURE__*/function (_WebSocket) {
|
|
|
2220
2220
|
this.onclose = function (e) {
|
|
2221
2221
|
var _this2 = this;
|
|
2222
2222
|
|
|
2223
|
+
console.error('webSocket关闭', e);
|
|
2224
|
+
|
|
2223
2225
|
this._dep.notify('close', e); // 如果WebSocket是非正常关闭 则进行重连
|
|
2224
2226
|
|
|
2225
2227
|
|
|
@@ -11508,7 +11510,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11508
11510
|
Object.assign(this.config, {
|
|
11509
11511
|
checkData: JSON.stringify(GetSendModel('keeplive', this.config))
|
|
11510
11512
|
});
|
|
11511
|
-
this.socket = common_request_useRequest('websocket')(config);
|
|
11513
|
+
this.socket = common_request_useRequest('websocket')(config, this);
|
|
11512
11514
|
initWsBaseTheme(this.socket, {
|
|
11513
11515
|
onOpen: function onOpen(e) {
|
|
11514
11516
|
// 登录
|
|
@@ -11586,6 +11588,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11586
11588
|
|
|
11587
11589
|
_classPrivateFieldSet(this, _player, null);
|
|
11588
11590
|
|
|
11591
|
+
this.socketTimer && clearTimeout(this.socketTimer);
|
|
11589
11592
|
(_this$socket2 = this.socket) === null || _this$socket2 === void 0 ? void 0 : _this$socket2.closeSocket(1000, '通知关闭websocket连接');
|
|
11590
11593
|
this.socket = null;
|
|
11591
11594
|
|
|
Binary file
|