nostr-websocket-utils / ContactListManager
Contact list manager interface
addContact(
contact
):void
Adds or updates a contact
Contact to add/update
void
removeContact(
pubkey
):void
Removes a contact
string
Public key of contact to remove
void
getContact(
pubkey
):undefined
|Contact
Gets a contact by public key
string
Public key to look up
undefined
| Contact
Contact if found
getAllContacts():
Contact
[]
Gets all contacts
Contact
[]
Array of all contacts
updateContactMetadata(
pubkey
,metadata
):void
Updates contact metadata
string
Public key of contact
Record
<string
, unknown
>
New metadata
void
createEvent():
NostrWSMessage
Creates a contact list event
Contact list event