@onyx-p/imlib-web 1.6.7 → 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 +3 -1
- package/index.umd.js +3 -1
- 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) {
|
package/index.umd.js
CHANGED