Documentation
Preparing search index...
@kehto/services
NdrRuntimeLike
Interface NdrRuntimeLike
Minimal structural subset of nostr-double-ratchet NdrRuntime.
interface
NdrRuntimeLike
{
close
?
()
:
void
;
getState
?
()
:
{
currentDevicePubkey
?:
string
|
null
;
ownerPubkey
?:
string
|
null
;
}
;
initForOwner
?
(
ownerPubkey
:
string
)
:
Promise
<
unknown
>
;
onSessionEvent
(
callback
:
(
event
:
NdrRumorLike
,
from
:
string
,
meta
?:
unknown
)
=>
void
,
)
:
()
=>
void
;
sendMessage
(
recipientPubkey
:
string
,
content
:
string
,
options
?:
unknown
,
ownerPubkey
?:
string
,
)
:
Promise
<
NdrRumorLike
>
;
setupUser
?
(
pubkey
:
string
,
ownerPubkey
?:
string
)
:
Promise
<
void
>
;
}
Index
Methods
close?
get
State?
init
For
Owner?
on
Session
Event
send
Message
setup
User?
Methods
Optional
close
close
?
()
:
void
Returns
void
Optional
get
State
getState
?
()
:
{
currentDevicePubkey
?:
string
|
null
;
ownerPubkey
?:
string
|
null
;
}
Returns
{
currentDevicePubkey
?:
string
|
null
;
ownerPubkey
?:
string
|
null
}
Optional
init
For
Owner
initForOwner
?
(
ownerPubkey
:
string
)
:
Promise
<
unknown
>
Parameters
ownerPubkey
:
string
Returns
Promise
<
unknown
>
on
Session
Event
onSessionEvent
(
callback
:
(
event
:
NdrRumorLike
,
from
:
string
,
meta
?:
unknown
)
=>
void
,
)
:
()
=>
void
Parameters
callback
:
(
event
:
NdrRumorLike
,
from
:
string
,
meta
?:
unknown
)
=>
void
Returns
()
=>
void
send
Message
sendMessage
(
recipientPubkey
:
string
,
content
:
string
,
options
?:
unknown
,
ownerPubkey
?:
string
,
)
:
Promise
<
NdrRumorLike
>
Parameters
recipientPubkey
:
string
content
:
string
Optional
options
:
unknown
Optional
ownerPubkey
:
string
Returns
Promise
<
NdrRumorLike
>
Optional
setup
User
setupUser
?
(
pubkey
:
string
,
ownerPubkey
?:
string
)
:
Promise
<
void
>
Parameters
pubkey
:
string
Optional
ownerPubkey
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
close
get
State
init
For
Owner
on
Session
Event
send
Message
setup
User
Documentation
Loading...
Minimal structural subset of nostr-double-ratchet NdrRuntime.