@onyx-p/imlib-web 1.6.6 → 1.6.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 +7 -3
- package/index.umd.js +7 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
@@ -9515,7 +9515,9 @@ function createWebSocket(url, protocols) {
|
|
9515
9515
|
onMessage(callback) {
|
9516
9516
|
ws.onmessage = evt => {
|
9517
9517
|
console.log('onMessage=========', evt.data);
|
9518
|
-
|
9518
|
+
setTimeout(() => {
|
9519
|
+
callback(evt.data);
|
9520
|
+
}, 200);
|
9519
9521
|
};
|
9520
9522
|
},
|
9521
9523
|
onOpen(callback) {
|
@@ -20125,8 +20127,10 @@ class LibLoader {
|
|
20125
20127
|
messageListener(cmdId, body) {
|
20126
20128
|
if (cmdId === CmdIds$1.NewMessagePush) {
|
20127
20129
|
console.log('messageListener: new message push');
|
20128
|
-
|
20129
|
-
|
20130
|
+
setTimeout(() => {
|
20131
|
+
const newMsgNotiResp = NewMessageNotificationResp.decode(body);
|
20132
|
+
this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
|
20133
|
+
}, 100);
|
20130
20134
|
} else if (cmdId === CmdIds$1.DialogChangedPush) {
|
20131
20135
|
ConversationManager$1.get().syncConversationStatus();
|
20132
20136
|
} else {
|
package/index.umd.js
CHANGED
@@ -9521,7 +9521,9 @@
|
|
9521
9521
|
onMessage(callback) {
|
9522
9522
|
ws.onmessage = evt => {
|
9523
9523
|
console.log('onMessage=========', evt.data);
|
9524
|
-
|
9524
|
+
setTimeout(() => {
|
9525
|
+
callback(evt.data);
|
9526
|
+
}, 200);
|
9525
9527
|
};
|
9526
9528
|
},
|
9527
9529
|
onOpen(callback) {
|
@@ -20131,8 +20133,10 @@
|
|
20131
20133
|
messageListener(cmdId, body) {
|
20132
20134
|
if (cmdId === CmdIds$1.NewMessagePush) {
|
20133
20135
|
console.log('messageListener: new message push');
|
20134
|
-
|
20135
|
-
|
20136
|
+
setTimeout(() => {
|
20137
|
+
const newMsgNotiResp = NewMessageNotificationResp.decode(body);
|
20138
|
+
this.messageLoader?.syncMsg(newMsgNotiResp.seqno);
|
20139
|
+
}, 100);
|
20136
20140
|
} else if (cmdId === CmdIds$1.DialogChangedPush) {
|
20137
20141
|
ConversationManager$1.get().syncConversationStatus();
|
20138
20142
|
} else {
|