@atala/prism-wallet-sdk / Exports / MediatorHandler
Class: MediatorHandler
Implemented by
Table of contents
Constructors
Properties
Methods
- achieveMediation
- bootRegisteredMediator
- listenUnreadMessages
- pickupUnreadMessages
- registerMessagesAsRead
- updateKeyListWithDIDs
Constructors
constructor
• new MediatorHandler(): MediatorHandler
Returns
Properties
mediator
• Optional
Abstract
mediator: Mediator
Defined in
src/edge-agent/types/index.ts:173
mediatorDID
• Abstract
mediatorDID: DID
Defined in
src/edge-agent/types/index.ts:171
Methods
achieveMediation
▸ achieveMediation(host
): Promise
<Mediator
>
Parameters
Name | Type |
---|---|
host | DID |
Returns
Promise
<Mediator
>
Defined in
src/edge-agent/types/index.ts:177
bootRegisteredMediator
▸ bootRegisteredMediator(): Promise
<undefined
| Mediator
>
Returns
Promise
<undefined
| Mediator
>
Defined in
src/edge-agent/types/index.ts:175
listenUnreadMessages
▸ listenUnreadMessages(signal
, serviceEndpointUri
, onMessage
): void
Parameters
Name | Type |
---|---|
signal | AbortSignal |
serviceEndpointUri | string |
onMessage | (messages : { attachmentId : string ; message : Message }[]) => void | Promise <void > |
Returns
void
Defined in
src/edge-agent/types/index.ts:187
pickupUnreadMessages
▸ pickupUnreadMessages(limit
): Promise
<{ attachmentId
: string
; message
: Message
}[]>
Parameters
Name | Type |
---|---|
limit | number |
Returns
Promise
<{ attachmentId
: string
; message
: Message
}[]>
Defined in
src/edge-agent/types/index.ts:181
registerMessagesAsRead
▸ registerMessagesAsRead(ids
): Promise
<void
>
Parameters
Name | Type |
---|---|
ids | string [] |
Returns
Promise
<void
>
Defined in
src/edge-agent/types/index.ts:185
updateKeyListWithDIDs
▸ updateKeyListWithDIDs(dids
): Promise
<void
>
Parameters
Name | Type |
---|---|
dids | DID [] |
Returns
Promise
<void
>