@kumori/aurora-backend-handler 1.0.11 → 1.0.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/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "ws": "^8.18.2"
24
24
  },
25
25
  "name": "@kumori/aurora-backend-handler",
26
- "version": "1.0.11",
26
+ "version": "1.0.13",
27
27
  "description": "backend handler",
28
28
  "main": "backend-handler.ts",
29
29
  "repository": {
@@ -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 = "notlogged";
358
+ user = new User(userData);
359
+ eventHelper.user.publish.loaded(user);
358
360
  connectionPromise = null;
359
361
  reject(error);
360
362
  });