Connection Manager Impl
class ConnectionManagerImpl(mercury: Mercury, castor: Castor, pluto: Pluto, val mediationHandler: MediationHandler, pairings: MutableList<DIDPair>, pollux: Pollux, experimentLiveModeOptIn: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.IO)) : ConnectionManager, ConnectionsManager, DIDCommConnection(source)
ConnectionManager is responsible for managing connections and communication between entities.
Constructors
Link copied to clipboard
constructor(mercury: Mercury, castor: Castor, pluto: Pluto, mediationHandler: MediationHandler, pairings: MutableList<DIDPair>, pollux: Pollux, experimentLiveModeOptIn: Boolean = false, scope: CoroutineScope = CoroutineScope(Dispatchers.IO))
Properties
Functions
Link copied to clipboard
Adds a connection to the manager.
Link copied to clipboard
Awaits a response to a specified message ID from the connection.
Link copied to clipboard
Link copied to clipboard
Registers a mediator with the given host DID.
Link copied to clipboard
Removes a connection from the manager.
Link copied to clipboard
Sends a message over the connection.
Link copied to clipboard
Starts the process of fetching messages at a regular interval.
Link copied to clipboard
Suspends the current coroutine and boots the registered mediator associated with the mediator handler. If no mediator is available, a EdgeAgentError.NoMediatorAvailableError is thrown.
Link copied to clipboard
Stops a connection