@multiplayer-app/session-recorder-browser 1.3.35 → 1.3.36

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.umd.js CHANGED
@@ -24326,7 +24326,7 @@ const CONTINUOUS_DEBUGGING_TIMEOUT = 60000; // 1 minutes
24326
24326
  const DEBUG_SESSION_MAX_DURATION_SECONDS = 10 * 60 + 30; // TODO: move to shared config otel core
24327
24327
  const REMOTE_SESSION_RECORDING_START = 'remote-session-recording:start';
24328
24328
  const REMOTE_SESSION_RECORDING_STOP = 'remote-session-recording:stop';
24329
- const PACKAGE_VERSION_EXPORT = "1.3.35" || 0;
24329
+ const PACKAGE_VERSION_EXPORT = "1.3.36" || 0;
24330
24330
  // Regex patterns for OpenTelemetry ignore URLs
24331
24331
  const OTEL_IGNORE_URLS = [
24332
24332
  // Traces endpoint
@@ -27146,6 +27146,7 @@ class SocketService extends lib0_observable__WEBPACK_IMPORTED_MODULE_4__.Observa
27146
27146
  this.attempts = 0;
27147
27147
  this.sessionId = null;
27148
27148
  this.usePostMessage = false;
27149
+ this.isInitialized = false;
27149
27150
  this.options = {
27150
27151
  apiKey: '',
27151
27152
  socketUrl: '',
@@ -27162,6 +27163,7 @@ class SocketService extends lib0_observable__WEBPACK_IMPORTED_MODULE_4__.Observa
27162
27163
  ...this.options,
27163
27164
  ...config
27164
27165
  };
27166
+ this.isInitialized = true;
27165
27167
  if (this.options.keepAlive && this.options.socketUrl && this.options.apiKey) {
27166
27168
  this._initConnection();
27167
27169
  }
@@ -27189,7 +27191,7 @@ class SocketService extends lib0_observable__WEBPACK_IMPORTED_MODULE_4__.Observa
27189
27191
  }
27190
27192
  }
27191
27193
  _initConnection() {
27192
- if (this.isConnecting || this.isConnected)
27194
+ if (this.isConnecting || this.isConnected || !this.isInitialized)
27193
27195
  return;
27194
27196
  this.attempts++;
27195
27197
  this.isConnecting = true;