ztxkutils 2.7.1 → 2.7.2
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/index.js +1 -1
- package/dist/request-90475df7.js +2735 -0
- package/dist/request.js +1 -1
- package/dist/stompClient.js +11 -7
- package/package.json +1 -1
package/dist/request.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import './tslib.es6-f9459658.js';
|
2
2
|
import 'axios';
|
3
3
|
import 'ztxkui';
|
4
|
-
export { a as default } from './request-
|
4
|
+
export { a as default } from './request-90475df7.js';
|
5
5
|
import './authority-fad2028d.js';
|
6
6
|
import './crypto-c481f616.js';
|
7
7
|
import 'crypto';
|
package/dist/stompClient.js
CHANGED
@@ -101,14 +101,18 @@ var StompClient = /** @class */ (function () {
|
|
101
101
|
// 重连逻辑, 默认3秒后重连
|
102
102
|
// 重连间隔,每隔5秒递增,超过最大间隔时间后,取最大间隔时间重连
|
103
103
|
_this.client.disconnect(function () {
|
104
|
-
var _a;
|
105
|
-
_this.client = null;
|
106
|
-
_this.reconnectionNum++;
|
107
|
-
var timeInterval = Math.ceil(_this.reconnectionNum / 5) *
|
108
|
-
((_a = _this.connectWsConfig.reconnectionTime) !== null && _a !== void 0 ? _a : 3000);
|
109
104
|
setTimeout(function () {
|
110
|
-
_this.
|
111
|
-
|
105
|
+
_this.client = null;
|
106
|
+
_this.reconnectionNum++;
|
107
|
+
// const timeInterval =
|
108
|
+
// Math.ceil(this.reconnectionNum / 5) *
|
109
|
+
// (this.connectWsConfig.reconnectionTime ?? 3000);
|
110
|
+
var timeInterval = 3000;
|
111
|
+
console.log("\u7B2C" + _this.reconnectionNum + "\u6B21\u91CD\u8FDE\uFF01");
|
112
|
+
setTimeout(function () {
|
113
|
+
_this.init();
|
114
|
+
}, timeInterval);
|
115
|
+
}, 300);
|
112
116
|
});
|
113
117
|
});
|
114
118
|
};
|