tryReceiveText

abstract fun tryReceiveText(): String?(source)

Immediately returns text data from the data channel or null if no text message is available.

This method does not suspend and returns immediately. If a text message is available, its content is returned; otherwise, null is returned. If the next message is a binary message, null is returned.