DIDCommConnection

An interface representing a connection for exchanging messages using the DIDComm protocol. The DIDCommConnection protocol defines methods for awaiting and sending messages using the DIDComm protocol.

Inheritors

Functions

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

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

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

Awaits messages from the connection.

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

Sends a message over the connection.