nostr-double-ratchet
Preparing search index...
NostrSubscribe
Type Alias NostrSubscribe
NostrSubscribe
:
(
_filter
:
Filter
,
_onEvent
:
(
_e
:
VerifiedEvent
)
=>
void
,
)
=>
Unsubscribe
Function that subscribes to Nostr events matching a filter and calls onEvent for each event.
Type declaration
(
_filter
:
Filter
,
_onEvent
:
(
_e
:
VerifiedEvent
)
=>
void
)
:
Unsubscribe
Parameters
_filter
:
Filter
_onEvent
:
(
_e
:
VerifiedEvent
)
=>
void
Returns
Unsubscribe
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
nostr-double-ratchet
Loading...
Function that subscribes to Nostr events matching a filter and calls onEvent for each event.