Documentation
Preparing search index...
@kehto/services
NdrRelayTransport
Interface NdrRelayTransport
interface
NdrRelayTransport
{
nostrFetch
(
filter
:
NostrFilter
)
:
Promise
<
NostrEvent
[]
>
;
nostrPublish
(
event
:
Partial
<
NostrEvent
>
,
innerEventId
?:
string
,
)
:
Promise
<
NostrEvent
>
;
nostrSubscribe
(
filter
:
NostrFilter
,
onEvent
:
(
event
:
NostrEvent
)
=>
void
,
)
:
()
=>
void
;
}
Index
Methods
nostr
Fetch
nostr
Publish
nostr
Subscribe
Methods
nostr
Fetch
nostrFetch
(
filter
:
NostrFilter
)
:
Promise
<
NostrEvent
[]
>
Parameters
filter
:
NostrFilter
Returns
Promise
<
NostrEvent
[]
>
nostr
Publish
nostrPublish
(
event
:
Partial
<
NostrEvent
>
,
innerEventId
?:
string
,
)
:
Promise
<
NostrEvent
>
Parameters
event
:
Partial
<
NostrEvent
>
Optional
innerEventId
:
string
Returns
Promise
<
NostrEvent
>
nostr
Subscribe
nostrSubscribe
(
filter
:
NostrFilter
,
onEvent
:
(
event
:
NostrEvent
)
=>
void
,
)
:
()
=>
void
Parameters
filter
:
NostrFilter
onEvent
:
(
event
:
NostrEvent
)
=>
void
Returns
()
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
nostr
Fetch
nostr
Publish
nostr
Subscribe
Documentation
Loading...