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