SyncNetworkClient

The network transmission abstraction used to communicate with a Keyple server. See SimpleHttpNetworkClient for an example implementation using Ktor with HTTP basic-auth. If you have more constraints, for authentication, for example, use this interface and implement your own authentication logics.

Since

1.0.0

Functions

Link copied to clipboard
abstract suspend fun sendRequest(message: MessageDto): List<MessageDto>

Sends the MessageDto payload to the server and waits asynchronously for the next MessageDto the server asks us to process.