receiveBinary

open suspend override fun receiveBinary(): ByteArray(source)

Receives a binary message from the data channel.

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