nostr-websocket-utils / EventReplacementHandler
Event replacement handler interface
shouldReplace(
newEvent
,existingEvent
):boolean
Checks if an event should replace another
Record
<string
, unknown
>
New event
Record
<string
, unknown
>
Existing event
boolean
True if should replace
getReplacementKey(
event
):string
Gets replacement key for an event
Record
<string
, unknown
>
Event to get key for
string
Replacement key