Basic Mediator Handler
class BasicMediatorHandler(val mediatorDID: DID, mercury: Mercury, store: MediatorRepository) : MediationHandler(source)
A class that provides an implementation of MediationHandler using a Pluto instance and a Mercury instance. It can be used to register, retrieve and update mediator information, achieve mediation, pick up unread messages, and register messages as read.
Types
Link copied to clipboard
A class that provides an implementation of MediatorRepository using a Pluto instance.
Functions
Link copied to clipboard
Achieves mediation with the mediatorDID with the specified host DID as a user.
Link copied to clipboard
Boots the registered mediator associated with the mediator handler.
Link copied to clipboard
open suspend override fun listenUnreadMessages(serviceEndpointUri: String, onMessageCallback: OnMessageCallback)
Listens for unread messages from a specified WebSocket service endpoint.
Link copied to clipboard
Link copied to clipboard
Registers the specified message IDs as read.
Link copied to clipboard
Updates the key list with the specified DIDs.