@onyx-p/imlib-web 1.6.3 → 1.6.5

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
@@ -9514,6 +9514,7 @@ function createWebSocket(url, protocols) {
9514
9514
  },
9515
9515
  onMessage(callback) {
9516
9516
  ws.onmessage = evt => {
9517
+ console.log('onMessage=========', evt.data);
9517
9518
  callback(evt.data);
9518
9519
  };
9519
9520
  },
@@ -13570,7 +13571,7 @@ class WebSocketServer {
13570
13571
  resolve(networkResponse.body);
13571
13572
  this.responseCallbacks.delete(messageSeq);
13572
13573
  } else {
13573
- logger.info(`websocket recv -> cmd: 0x${networkResponse.cmdId.toString(16)}, messageSeq: ${messageSeq}`);
13574
+ logger.info(`websocket recv -> cmd: 0x${networkResponse.cmdId.toString(16)}`);
13574
13575
  this.watcher?.message(networkResponse.cmdId, networkResponse.body);
13575
13576
  }
13576
13577
  }
@@ -17472,7 +17473,7 @@ const GetNewSettingDialogListResp = $root$1.GetNewSettingDialogListResp = (() =>
17472
17473
  };
17473
17474
  return GetNewSettingDialogListResp;
17474
17475
  })();
17475
- const NewMessageNotificationResp = $root$1.NewMessageNotificationResp = (() => {
17476
+ $root$1.NewMessageNotificationResp = (() => {
17476
17477
  /**
17477
17478
  * Properties of a NewMessageNotificationResp.
17478
17479
  * @exports INewMessageNotificationResp
@@ -20123,8 +20124,7 @@ class LibLoader {
20123
20124
  }
20124
20125
  messageListener(cmdId, body) {
20125
20126
  if (cmdId === CmdIds$1.NewMessagePush) {
20126
- const newMsgNotiResp = NewMessageNotificationResp.decode(body);
20127
- this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
20127
+ console.log('messageListener: new message push');
20128
20128
  } else if (cmdId === CmdIds$1.DialogChangedPush) {
20129
20129
  ConversationManager$1.get().syncConversationStatus();
20130
20130
  } else {
package/index.umd.js CHANGED
@@ -9520,6 +9520,7 @@
9520
9520
  },
9521
9521
  onMessage(callback) {
9522
9522
  ws.onmessage = evt => {
9523
+ console.log('onMessage=========', evt.data);
9523
9524
  callback(evt.data);
9524
9525
  };
9525
9526
  },
@@ -13576,7 +13577,7 @@
13576
13577
  resolve(networkResponse.body);
13577
13578
  this.responseCallbacks.delete(messageSeq);
13578
13579
  } else {
13579
- logger.info(`websocket recv -> cmd: 0x${networkResponse.cmdId.toString(16)}, messageSeq: ${messageSeq}`);
13580
+ logger.info(`websocket recv -> cmd: 0x${networkResponse.cmdId.toString(16)}`);
13580
13581
  this.watcher?.message(networkResponse.cmdId, networkResponse.body);
13581
13582
  }
13582
13583
  }
@@ -17478,7 +17479,7 @@
17478
17479
  };
17479
17480
  return GetNewSettingDialogListResp;
17480
17481
  })();
17481
- const NewMessageNotificationResp = $root$1.NewMessageNotificationResp = (() => {
17482
+ $root$1.NewMessageNotificationResp = (() => {
17482
17483
  /**
17483
17484
  * Properties of a NewMessageNotificationResp.
17484
17485
  * @exports INewMessageNotificationResp
@@ -20129,8 +20130,7 @@
20129
20130
  }
20130
20131
  messageListener(cmdId, body) {
20131
20132
  if (cmdId === CmdIds$1.NewMessagePush) {
20132
- const newMsgNotiResp = NewMessageNotificationResp.decode(body);
20133
- this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
20133
+ console.log('messageListener: new message push');
20134
20134
  } else if (cmdId === CmdIds$1.DialogChangedPush) {
20135
20135
  ConversationManager$1.get().syncConversationStatus();
20136
20136
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",