ztxkutils 2.10.0 → 2.10.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.
- package/dist/stompClient.js +7 -5
- package/package.json +1 -1
package/dist/stompClient.js
CHANGED
@@ -65,11 +65,13 @@ var StompClient = /** @class */ (function () {
|
|
65
65
|
}
|
66
66
|
}, 10000);
|
67
67
|
// 拦截输出的一大堆垃圾信息
|
68
|
-
this.
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
if (this.connectWsConfig.debug) {
|
69
|
+
this.client.debug = function (str) {
|
70
|
+
if (_this.connectWsConfig.debug) {
|
71
|
+
console.log(str);
|
72
|
+
}
|
73
|
+
};
|
74
|
+
}
|
73
75
|
// 心跳检测 stompjs 底层使用window.setInterval() 定期发送心跳检测
|
74
76
|
this.client.heartbeat.outgoing =
|
75
77
|
(_b = (_a = this.connectWsConfig.heartbeat) === null || _a === void 0 ? void 0 : _a.outgoing) !== null && _b !== void 0 ? _b : 2000; // 客户端将每2000ms发送一次心跳
|