@base44-preview/sdk 0.8.13-pr.58.3a4abcb → 0.8.13-pr.58.51dd5dd
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/modules/entities.js
CHANGED
|
@@ -39,7 +39,8 @@ function parseRealtimeMessage(dataStr) {
|
|
|
39
39
|
timestamp: parsed.timestamp || new Date().toISOString(),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
catch (
|
|
42
|
+
catch (error) {
|
|
43
|
+
console.warn("[Base44 SDK] Failed to parse realtime message:", error);
|
|
43
44
|
return null;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -129,7 +130,12 @@ function createEntityHandler(axios, appId, entityName, getSocket) {
|
|
|
129
130
|
if (!event) {
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
+
try {
|
|
134
|
+
callback(event);
|
|
135
|
+
}
|
|
136
|
+
catch (error) {
|
|
137
|
+
console.error("[Base44 SDK] Subscription callback error:", error);
|
|
138
|
+
}
|
|
133
139
|
},
|
|
134
140
|
});
|
|
135
141
|
return unsubscribe;
|