receive

fun receive(bytes: ByteArray, nowMillis: Long): RemoteMessage?(source)

Accepts one frame and returns only complete post-negotiation application messages. The first peer greeting is consumed here; a repeated greeting or premature application message is rejected.