Skip to main content

@atala/prism-wallet-sdk / Exports / MediatorHandler

Class: MediatorHandler

Implemented by

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MediatorHandler(): MediatorHandler

Returns

MediatorHandler

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

NameType
hostDID

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

NameType
signalAbortSignal
serviceEndpointUristring
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

NameType
limitnumber

Returns

Promise<{ attachmentId: string ; message: Message }[]>

Defined in

src/edge-agent/types/index.ts:181


registerMessagesAsRead

registerMessagesAsRead(ids): Promise<void>

Parameters

NameType
idsstring[]

Returns

Promise<void>

Defined in

src/edge-agent/types/index.ts:185


updateKeyListWithDIDs

updateKeyListWithDIDs(dids): Promise<void>

Parameters

NameType
didsDID[]

Returns

Promise<void>

Defined in

src/edge-agent/types/index.ts:179