@kumori/aurora-backend-handler 1.0.11 → 1.0.12
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/package.json +1 -1
- package/websocket-manager.ts +3 -1
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -346,7 +346,6 @@ export const initializeGlobalWebSocketClient = async (
|
|
|
346
346
|
platformInfo = null;
|
|
347
347
|
isPlatformInfoLoaded = false;
|
|
348
348
|
isPlatformInfoLoading = false;
|
|
349
|
-
|
|
350
349
|
pendingRequests.forEach((pending, messageId) => {
|
|
351
350
|
pending.reject(new Error("WebSocket connection closed"));
|
|
352
351
|
pendingRequests.delete(messageId);
|
|
@@ -355,6 +354,9 @@ export const initializeGlobalWebSocketClient = async (
|
|
|
355
354
|
|
|
356
355
|
wsConnection?.addEventListener("error", (error) => {
|
|
357
356
|
console.error("Global WebSocket error:", error);
|
|
357
|
+
userData.status = "unknown";
|
|
358
|
+
user = new User(userData);
|
|
359
|
+
eventHelper.user.publish.loaded(user);
|
|
358
360
|
connectionPromise = null;
|
|
359
361
|
reject(error);
|
|
360
362
|
});
|