Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ await replay.stop();

This will flush any pending recording data, stop the replay, and end the session.

If you don't want the pending segment to be sent when stopping (for example, when a user withdraws consent for Session Replay), pass `{ flush: false }`:

<AvailableSince version="10.67.0" />

```javascript
await replay.stop({ flush: false });
```

This stops recording and discards the buffered segment instead of uploading it. Note that `flush: false` only prevents the _pending_ (final) segment from being sent. It does not retract segments that were already sent earlier during `session` recording.

## Manually Flushing Recording Data

You can flush any pending recording data with:
Expand Down
Loading