@centive/aria-sdk 0.8.5 → 0.8.6

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/index.js CHANGED
@@ -181,7 +181,7 @@ class U {
181
181
  this.resetReconnectState(), this.setStatus("connecting");
182
182
  try {
183
183
  this.ws = new WebSocket(this.config.websocketUrl), this.ws.onopen = () => {
184
- console.log("[AriaSessionManager] WebSocket connected"), this.setStatus("connected"), this.retryCount = 0, this.emit({ type: "connection_change", data: { connected: !0 } }), this.config.onConnectionStateChange?.(!0), this.config.preloadSession !== !1 && this.config.userId ? (console.log("[AriaSessionManager] Requesting session token for user:", this.config.userId), this.requestSessionToken()) : this.config.preloadSession !== !1 && !this.config.userId && console.log("[AriaSessionManager] Skipping session request: no userId configured. Session will be created when user triggers.");
184
+ console.log("[AriaSessionManager] WebSocket connected"), this.setStatus("connected"), this.retryCount = 0, this.emit({ type: "connection_change", data: { connected: !0 } }), this.config.onConnectionStateChange?.(!0), this.config.preloadSession !== !1 && (console.log("[AriaSessionManager] Requesting session token for user:", this.config.userId || "(no userId)"), this.requestSessionToken());
185
185
  }, this.ws.onmessage = (e) => this.handleWebSocketMessage(e), this.ws.onerror = (e) => {
186
186
  console.error("[AriaSessionManager] WebSocket error:", e), this.setStatus("error"), this.updateSessionState({ lastError: "WebSocket connection error" }), this.config.onError?.(new Error("WebSocket connection failed"));
187
187
  }, this.ws.onclose = (e) => {