nostr-websocket-utils / TimeValidator
Time validator interface
validateTime(
timestamp
):TimeValidationResult
Validates event timestamp
number
Event timestamp
Validation result
updateTimeOffset(
serverTime
):void
Updates server time offset
number
Server timestamp
void
getCurrentTime():
number
Gets current adjusted timestamp
number
Adjusted timestamp