Skip to content

Latest commit

 

History

History
87 lines (44 loc) · 1.39 KB

ChannelSubscriptionManager.md

File metadata and controls

87 lines (44 loc) · 1.39 KB

nostr-websocket-utils v0.3.0


nostr-websocket-utils / ChannelSubscriptionManager

Interface: ChannelSubscriptionManager

Channel subscription manager interface

Methods

subscribe()

subscribe(channelId): NostrWSMessage

Subscribes to a channel

Parameters

channelId

string

Channel ID

Returns

NostrWSMessage

Subscription message

Defined in

nips/nip-28.ts:201


unsubscribe()

unsubscribe(channelId): NostrWSMessage

Unsubscribes from a channel

Parameters

channelId

string

Channel ID

Returns

NostrWSMessage

Unsubscribe message

Defined in

nips/nip-28.ts:208


getMetadata()

getMetadata(channelId): Promise<undefined | ChannelMetadata>

Gets channel metadata

Parameters

channelId

string

Channel ID

Returns

Promise<undefined | ChannelMetadata>

Channel metadata

Defined in

nips/nip-28.ts:215