receive

abstract suspend fun receive(): String

Suspends until a message is available and return it. If the message was binary, it is converted to a String

Throws

ApolloNetworkException

if a network exception happened either when reading or sending messages See also send