Creates an instance of ConnectionsManager.
Optional
cancellableCancellable task used to listen for new messages, stopping the Agent should also stop this from running and destroy the instance of the task until agent is started again
An array with cancellable tasks, mainly used to store one or multiple didcomm connections in storage implementation at the same time. All of them can be cancelled despite they run asyncronously when the Edge agent stops
A list of public facing events which will notify the user interface when specific things happen, for now when new messages arrive or didcomm connections are established in order to make UI more reactive
Asyncronously add a didPair (didcomm connection) into pluto
Find the specified did pair connection index
Asyncronously establish mediator with a mediator by providing the Host DID
Remove a didPair or a didcomm connection, this does not mean the mediator will do this but just means the connection will be removed from the current storage
ConnectionsManager is responsible of establishing didcomm connection and mediation process with other mediators through didcomm and is also responsible of managing the task to periodically fetch messages from the mediator once connection is established