nostr-websocket-utils / TimeSyncManager
Time synchronization manager interface
startSync(
wsUrl
):void
Starts time synchronization
string
WebSocket URL for time sync
void
stopSync():
void
Stops time synchronization
void
getCurrentTime():
number
Gets current synchronized time
number
Current timestamp
validateEvent(
event
):TimeValidationResult
Validates event timing
Event to validate
Validation result