Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend override fun addConnection(paired: DIDPair)

Adds a connection to the manager.

Link copied to clipboard
abstract suspend override fun awaitMessageResponse(id: String): Message?

Awaits a response to a specified message ID from the connection.

Link copied to clipboard
abstract suspend override fun awaitMessages(): Flow<Array<Pair<String, Message>>>

Awaits messages from the connection.

Link copied to clipboard
abstract suspend fun registerMediator(host: DID)
Link copied to clipboard
abstract suspend override fun removeConnection(pair: DIDPair): DIDPair?

Removes a connection from the manager.

Link copied to clipboard
abstract suspend override fun sendMessage(message: Message): Message?

Sends a message over the connection.

Link copied to clipboard
abstract fun startFetchingMessages(requestInterval: Int = 5)
Link copied to clipboard
abstract suspend fun startMediator()
Link copied to clipboard
abstract fun stopConnection()

Stops a connection