nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / scoreRelayCapabilities

Function: scoreRelayCapabilities()

scoreRelayCapabilities(info, preferences): number

Creates a relay selection score based on capabilities

Parameters

info

RelayInformation

Relay information

preferences

Scoring preferences

preferredNips

number[]

minMessageLength

number

minSubscriptions

number

requireAuth

boolean

requirePayment

boolean

Returns

number

Relay score (higher is better)

Defined in

nips/nip-11.ts:171