ztxkutils 1.9.5 → 1.9.6
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 +2 -2
- package/package.json +1 -1
package/dist/stompClient.js
CHANGED
@@ -30,9 +30,9 @@ var StompClient = /** @class */ (function () {
|
|
30
30
|
};
|
31
31
|
// 心跳检测 stompjs 底层使用window.setInterval() 定期发送心跳检测
|
32
32
|
this.client.heartbeat.outgoing =
|
33
|
-
(_b = (_a = this.connectWsConfig.heartbeat) === null || _a === void 0 ? void 0 : _a.outgoing) !== null && _b !== void 0 ? _b :
|
33
|
+
(_b = (_a = this.connectWsConfig.heartbeat) === null || _a === void 0 ? void 0 : _a.outgoing) !== null && _b !== void 0 ? _b : 3000; // 客户端将每3000ms发送一次心跳
|
34
34
|
this.client.heartbeat.incoming =
|
35
|
-
(_d = (_c = this.connectWsConfig.heartbeat) === null || _c === void 0 ? void 0 : _c.incoming) !== null && _d !== void 0 ? _d :
|
35
|
+
(_d = (_c = this.connectWsConfig.heartbeat) === null || _c === void 0 ? void 0 : _c.incoming) !== null && _d !== void 0 ? _d : 3000; // 客户端不希望从服务器接收心跳
|
36
36
|
this.client.connect({},
|
37
37
|
// 连接成功回调
|
38
38
|
function () {
|