@onyx-p/imlib-web 1.5.7 → 1.5.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/index.esm.js CHANGED
@@ -13545,7 +13545,7 @@ class WebSocketServer {
13545
13545
  this.connect();
13546
13546
  }, 5000);
13547
13547
  }
13548
- onConnect() {
13548
+ async onConnect() {
13549
13549
  this.setStatus(ConnectionStatus.CONNECTED);
13550
13550
  this.checkAlive();
13551
13551
  if (isDef(this.reconnectTimer)) {
@@ -13559,6 +13559,7 @@ class WebSocketServer {
13559
13559
  messageSeq
13560
13560
  } = this.pendingMessages.shift();
13561
13561
  this.doSendRawData(cmdId, body, messageSeq);
13562
+ await new Promise(resolve => setTimeout(resolve, 200));
13562
13563
  }
13563
13564
  }
13564
13565
  onDisconnect(error) {
package/index.umd.js CHANGED
@@ -13551,7 +13551,7 @@
13551
13551
  this.connect();
13552
13552
  }, 5000);
13553
13553
  }
13554
- onConnect() {
13554
+ async onConnect() {
13555
13555
  this.setStatus(exports.ConnectionStatus.CONNECTED);
13556
13556
  this.checkAlive();
13557
13557
  if (isDef(this.reconnectTimer)) {
@@ -13565,6 +13565,7 @@
13565
13565
  messageSeq
13566
13566
  } = this.pendingMessages.shift();
13567
13567
  this.doSendRawData(cmdId, body, messageSeq);
13568
+ await new Promise(resolve => setTimeout(resolve, 200));
13568
13569
  }
13569
13570
  }
13570
13571
  onDisconnect(error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",