@cendarsoss/pusher-js 8.4.12 → 8.4.13
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/dist/node/pusher.js +8 -1
- package/dist/node/pusher.js.map +1 -1
- package/dist/web/pusher.mjs +8 -1
- package/dist/web/pusher.mjs.map +1 -1
- package/examples/test-trident.html +263 -0
- package/package.json +1 -1
- package/src/core/delta/manager.ts +11 -1
package/dist/web/pusher.mjs
CHANGED
|
@@ -5436,10 +5436,17 @@ class DeltaCompressionManager {
|
|
|
5436
5436
|
});
|
|
5437
5437
|
try {
|
|
5438
5438
|
const parsedMessage = JSON.parse(reconstructedMessage);
|
|
5439
|
+
let data = parsedMessage.data || parsedMessage;
|
|
5440
|
+
if (typeof data === "string") {
|
|
5441
|
+
try {
|
|
5442
|
+
data = JSON.parse(data);
|
|
5443
|
+
} catch (e) {
|
|
5444
|
+
}
|
|
5445
|
+
}
|
|
5439
5446
|
return {
|
|
5440
5447
|
event,
|
|
5441
5448
|
channel,
|
|
5442
|
-
data
|
|
5449
|
+
data
|
|
5443
5450
|
};
|
|
5444
5451
|
} catch (e) {
|
|
5445
5452
|
return {
|