JavaScriptAPI reference
Session replay
Session replay in the JavaScript SDK.
// access
nexus.replayNexusReplay
classBrowser session replay. Records the DOM with rrweb and ships the events
to /partner/replay, correlated to the journey session — rendered natively by
the Nexus console's player. Requires the optional rrweb peer dependency.
No-op on the server.
Redaction: every input is masked by default ({@link NexusConfig.replayMaskAllInputs });
add the nexus-block class to fully block an element, or nexus-mask to mask
its text (configurable via replayBlockClass / replayMaskTextClass).
NexusReplay
constructornew NexusReplay(http: NexusHttp, id: NexusIdentity, cfg: ResolvedConfig)Parameters
Prop
Type
Returns NexusReplay
isRecording
propertyreadonly isRecording: booleanstart()
methodasync start(): Promise<void>Start recording (idempotent). No-op outside the browser or without rrweb.
View sourceflush()
methodasync flush(): Promise<void>Ship any buffered events now.
View sourcestop()
methodasync stop(): Promise<void>Stop recording and flush the remaining events.
View sourcedispose()
methoddispose(): void