nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / extractContacts

Function: extractContacts()

extractContacts(message, _logger): Contact[]

Extracts contacts from a contact list event

Parameters

message

NostrWSMessage

Contact list message

_logger

Logger

Logger instance

Returns

Contact[]

Array of contacts

Defined in

nips/nip-02.ts:58