nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / checkRelayRequirements

Function: checkRelayRequirements()

checkRelayRequirements(relay, requirements): boolean

Checks if relay meets requirements

Parameters

relay

RelayInformation

Relay information

requirements

Partial<RelayInformation>

Required relay features

Returns

boolean

True if relay meets all requirements

Defined in

nips/nip-11.ts:61