Replay detection engine. Tracks seen event IDs and validates timestamps.
const detector = createReplayDetector();const reason = detector.check(event);if (reason !== null) { // reject event } Copy
const detector = createReplayDetector();const reason = detector.check(event);if (reason !== null) { // reject event }
Check if an event should be rejected as a replay. Returns null if event is valid, or a string reason if it should be rejected.
Clear all tracked event IDs.
Replay detection engine. Tracks seen event IDs and validates timestamps.
Example