@obslysdk/session-replay
v1.1.0-next.2
Published
This library adds session replay functionality to the @obslysdk/browser SDK. It captures session state and user interactions for later playback and is managed entirely by the main SDK.
Readme
@obslysdk/session-replay
This library adds session replay functionality to the @obslysdk/browser SDK. It captures session state and user interactions for later playback and is managed entirely by the main SDK.
Features
- Session Event Capture: Records page state and user interactions suitable for replay.
- Automatic Handling: Managed internally by
@obslysdk/browser. - Optimized Delivery: Batching and lifecycle-aware sending.
Installation
To enable this functionality, simply install the @obslysdk/session-replay package using your preferred bundler or package manager:
npm install @obslysdk/session-replayConfiguration
After installing the package, import the library in the main entry point of your web application before executing the init method of the @obslysdk/browser SDK. The main SDK will handle all configuration internally.
// Import the session replay library
import '@obslysdk/session-replay'
// Initialize the SDK after importing session replay
import { init } from '@obslysdk/browser'
init({
// ... configuration options
})