crexperium-sdk 1.2.1 → 1.2.2

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.mjs CHANGED
@@ -13193,6 +13193,12 @@ class SessionReplayPlugin {
13193
13193
  console.log('[SessionReplay] Starting rrweb recording...');
13194
13194
  this.startRrwebRecording();
13195
13195
  console.log('[SessionReplay] rrweb recording started');
13196
+ // IMPORTANT: Flush initial events (Type 4 Meta + Type 2 Full Snapshot) immediately
13197
+ // so the session is playable right away, don't wait for the 5s flush interval
13198
+ setTimeout(() => {
13199
+ console.log('[SessionReplay] Performing initial flush of critical events...');
13200
+ this.flush();
13201
+ }, 100); // Small delay to ensure rrweb events are captured
13196
13202
  // Intercept console methods
13197
13203
  if (this.config.telemetry?.captureConsole) {
13198
13204
  this.interceptConsole();