@browser-replay/plugin-sequential-id-record
v0.0.2
Published
browser-replay plugin for sequential node IDs during recording
Readme
@browser-replay/plugin-sequential-id-record
Use this plugin in combination with the @browser-replay/plugin-sequential-id-replay plugin to record and replay events with a sequential id. See the guide for more info.
Installation
npm install @browser-replay/plugin-sequential-id-recordUsage
import { record } from '@browser-replay/record';
import { getRecordSequentialIdPlugin } from '@browser-replay/plugin-sequential-id-record';
record({
emit: function emit(event) {
// send events to server
},
plugins: [
getRecordSequentialIdPlugin({
key: '_sid', // default value
}),
],
});