sendRequest

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.

Return

A list containing a single MessageDto object.

Since

1.0.0

Parameters

message

The request message to be sent to the counterpart.

Throws

If an I/O error occurs while communicating with the server.