receive

abstract suspend fun receive(): ByteArray?(source)

The next message (a whole binary frame, reassembled if fragmented), or null once the connection has closed.