receiveText

abstract suspend fun receiveText(): String(source)

Receives a text message from the data channel.

This method suspends until a text message is available. If the next message in the channel is binary data instead of text, this method will throw an error.