wargerm 0.2.43 → 0.2.44
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.esm.js
CHANGED
@@ -10418,9 +10418,9 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10418
10418
|
};
|
10419
10419
|
|
10420
10420
|
this.websocketOnmessage = function (e) {
|
10421
|
-
console.log('-----接收消息-------', e);
|
10421
|
+
// console.log('-----接收消息-------', e);
|
10422
|
+
// const data = e.data //解析对象
|
10422
10423
|
// To handle
|
10423
|
-
|
10424
10424
|
_this.onmessageCB(e); //心跳检测重置
|
10425
10425
|
|
10426
10426
|
|
@@ -10446,6 +10446,12 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10446
10446
|
}
|
10447
10447
|
};
|
10448
10448
|
|
10449
|
+
this.close = function () {
|
10450
|
+
_this.websock.close();
|
10451
|
+
|
10452
|
+
_this.lockReconnect = true;
|
10453
|
+
};
|
10454
|
+
|
10449
10455
|
this.reconnect = function () {
|
10450
10456
|
var that = _this;
|
10451
10457
|
if (that.lockReconnect) return;
|
package/dist/index.js
CHANGED
@@ -10452,9 +10452,9 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10452
10452
|
};
|
10453
10453
|
|
10454
10454
|
this.websocketOnmessage = function (e) {
|
10455
|
-
console.log('-----接收消息-------', e);
|
10455
|
+
// console.log('-----接收消息-------', e);
|
10456
|
+
// const data = e.data //解析对象
|
10456
10457
|
// To handle
|
10457
|
-
|
10458
10458
|
_this.onmessageCB(e); //心跳检测重置
|
10459
10459
|
|
10460
10460
|
|
@@ -10480,6 +10480,12 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
|
10480
10480
|
}
|
10481
10481
|
};
|
10482
10482
|
|
10483
|
+
this.close = function () {
|
10484
|
+
_this.websock.close();
|
10485
|
+
|
10486
|
+
_this.lockReconnect = true;
|
10487
|
+
};
|
10488
|
+
|
10483
10489
|
this.reconnect = function () {
|
10484
10490
|
var that = _this;
|
10485
10491
|
if (that.lockReconnect) return;
|