@coasys/ad4m / Exports / DirectMessageAdapter
Interface: DirectMessageAdapter
Table of contents
Methods
Methods
addMessageCallback
▸ addMessageCallback(callback
): any
Parameters
Name | Type |
---|---|
callback | MessageCallback |
Returns
any
Defined in
language/Language.ts:203 (opens in a new tab)
inbox
▸ inbox(filter?
): Promise
<PerspectiveExpression
[]>
Parameters
Name | Type |
---|---|
filter? | string |
Returns
Promise
<PerspectiveExpression
[]>
Defined in
language/Language.ts:202 (opens in a new tab)
recipient
▸ recipient(): string
Returns
string
Defined in
language/Language.ts:195 (opens in a new tab)
sendInbox
▸ sendInbox(message
): Promise
<void
| PerspectiveExpression
>
Parameters
Name | Type |
---|---|
message | Perspective |
Returns
Promise
<void
| PerspectiveExpression
>
Defined in
language/Language.ts:199 (opens in a new tab)
sendP2P
▸ sendP2P(message
): Promise
<void
| PerspectiveExpression
>
Parameters
Name | Type |
---|---|
message | Perspective |
Returns
Promise
<void
| PerspectiveExpression
>
Defined in
language/Language.ts:198 (opens in a new tab)
setStatus
▸ setStatus(status
): any
Parameters
Name | Type |
---|---|
status | PerspectiveExpression |
Returns
any
Defined in
language/Language.ts:201 (opens in a new tab)
status
▸ status(): Promise
<void
| PerspectiveExpression
>
Returns
Promise
<void
| PerspectiveExpression
>