@heimdallr-sdk/record
v0.0.7
Published
A Plugin For Browser SDK
Downloads
11
Maintainers
Readme
@heimdallr-sdk/record
Record all actions in the current session
Usage
rrweb config ☞ rrweb guide
cdn
<script src="[record-dist]/record.iife.js"></script>
<script>
window.__HEIMDALLR_OPTIONS__ = {
dsn: {
host: 'localhost:8888',
init: '/project/init',
upload: '/log/upload'
},
app: {
name: 'playgroundAPP',
leader: 'test',
desc: 'test proj'
},
plugins: [
HEIMDALLR_RECORD([rrweb config]),
]
};
</script>
<script async src="/browser-dist/browser.iife.js"></script>
npm
import heimdallr from "@heimdallr-sdk/browser";
import recordPlugin from "@heimdallr-sdk/record";
heimdallr({
dsn: {
host: 'localhost:8888',
init: '/project/init',
upload: '/log/upload'
},
app: {
name: 'playgroundAPP',
leader: 'test',
desc: 'test proj'
},
plugins: [
recordPlugin([rrweb config]),
]
});