2.0.0-alpha.33 • Published 7 months ago

howdygo-rrweb-plugin-sequential-id-replay v2.0.0-alpha.33

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@rrweb/rrweb-plugin-sequential-id-replay

Use this plugin in combination with the @rrweb/rrweb-plugin-sequential-id-record plugin to record and replay events with a sequential id. See the guide for more info on rrweb.

Installation

npm install @rrweb/rrweb-plugin-sequential-id-replay

Usage

import rrweb from 'rrweb';
import { getReplaySequentialIdPlugin } from '@rrweb/rrweb-plugin-sequential-id-replay';

const replayer = new rrweb.Replayer(events, {
  plugins: [
    getReplaySequentialIdPlugin({
      // make sure this is the same as the record side
      key: '_id', // default value
      warnOnMissingId: true, // default value
    }),
  ],
});
replayer.play(); // ERROR: [sequential-id-plugin]: expect to get an id with value "42", but got "666"`

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site.

Gold Sponsors 🥇

Silver Sponsors 🥈

Bronze Sponsors 🥉

Backers

Core Team Members

Who's using rrweb?

2.0.0-alpha.33

7 months ago

2.0.0-alpha.32

7 months ago

2.0.0-alpha.31

9 months ago

2.0.0-alpha.30

9 months ago

2.0.0-alpha.29

9 months ago

2.0.0-alpha.28

9 months ago

2.0.0-alpha.27

10 months ago

2.0.0-alpha.26

10 months ago

2.0.0-alpha.25

10 months ago

2.0.0-alpha.24

10 months ago