API Reference
interfaces
Directmessageadapter

@perspect3vism/ad4m / Exports / DirectMessageAdapter

Interface: DirectMessageAdapter

Table of contents

Methods

Methods

addMessageCallback

addMessageCallback(callback): any

Parameters

NameType
callbackMessageCallback

Returns

any

Defined in

language/Language.ts:203 (opens in a new tab)


inbox

inbox(filter?): Promise<PerspectiveExpression[]>

Parameters

NameType
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

NameType
messagePerspective

Returns

Promise<void | PerspectiveExpression>

Defined in

language/Language.ts:199 (opens in a new tab)


sendP2P

sendP2P(message): Promise<void | PerspectiveExpression>

Parameters

NameType
messagePerspective

Returns

Promise<void | PerspectiveExpression>

Defined in

language/Language.ts:198 (opens in a new tab)


setStatus

setStatus(status): any

Parameters

NameType
statusPerspectiveExpression

Returns

any

Defined in

language/Language.ts:201 (opens in a new tab)


status

status(): Promise<void | PerspectiveExpression>

Returns

Promise<void | PerspectiveExpression>

Defined in

language/Language.ts:197 (opens in a new tab)