@onyx-p/imlib-web 1.6.1 → 1.6.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/index.esm.js CHANGED
@@ -13470,7 +13470,7 @@ class WebSocketServer {
13470
13470
  }
13471
13471
  async open() {
13472
13472
  const url = this.url;
13473
- logger.info(`conenct start -> ${url}`);
13473
+ logger.info(`connect start -> ${url}`);
13474
13474
  this.setStatus(ConnectionStatus.CONNECTING);
13475
13475
  const socket = createWebSocket(this.url);
13476
13476
  this.socket = socket;
@@ -13561,11 +13561,11 @@ class WebSocketServer {
13561
13561
  return;
13562
13562
  }
13563
13563
  const messageSeq = Long.isLong(networkResponse.messageSeq) ? networkResponse.messageSeq.toNumber() : 0;
13564
- if (networkResponse.cmdId !== CmdIds$1.HeartbeanResp) {
13565
- logger.info(`websocket recv ack -> messageSeq: ${messageSeq}`);
13566
- }
13567
- const resolve = this.responseCallbacks.get(messageSeq);
13564
+ const resolve = messageSeq > 0 ? this.responseCallbacks.get(messageSeq) : null;
13568
13565
  if (isDef(resolve)) {
13566
+ if (networkResponse.cmdId !== CmdIds$1.HeartbeanResp) {
13567
+ logger.info(`websocket recv ack -> messageSeq: ${messageSeq}`);
13568
+ }
13569
13569
  resolve(networkResponse.body);
13570
13570
  this.responseCallbacks.delete(messageSeq);
13571
13571
  } else {
package/index.umd.js CHANGED
@@ -13476,7 +13476,7 @@
13476
13476
  }
13477
13477
  async open() {
13478
13478
  const url = this.url;
13479
- logger.info(`conenct start -> ${url}`);
13479
+ logger.info(`connect start -> ${url}`);
13480
13480
  this.setStatus(exports.ConnectionStatus.CONNECTING);
13481
13481
  const socket = createWebSocket(this.url);
13482
13482
  this.socket = socket;
@@ -13567,11 +13567,11 @@
13567
13567
  return;
13568
13568
  }
13569
13569
  const messageSeq = Long.isLong(networkResponse.messageSeq) ? networkResponse.messageSeq.toNumber() : 0;
13570
- if (networkResponse.cmdId !== CmdIds$1.HeartbeanResp) {
13571
- logger.info(`websocket recv ack -> messageSeq: ${messageSeq}`);
13572
- }
13573
- const resolve = this.responseCallbacks.get(messageSeq);
13570
+ const resolve = messageSeq > 0 ? this.responseCallbacks.get(messageSeq) : null;
13574
13571
  if (isDef(resolve)) {
13572
+ if (networkResponse.cmdId !== CmdIds$1.HeartbeanResp) {
13573
+ logger.info(`websocket recv ack -> messageSeq: ${messageSeq}`);
13574
+ }
13575
13575
  resolve(networkResponse.body);
13576
13576
  this.responseCallbacks.delete(messageSeq);
13577
13577
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",