nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / validateEventTreatment

Function: validateEventTreatment()

validateEventTreatment(message, logger): boolean

Validates event treatment rules

Parameters

message

NostrWSMessage

Message to validate

logger

Logger

Logger instance

Returns

boolean

True if event follows treatment rules

Defined in

nips/nip-16.ts:73