receive

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

Returns a completed owned message, or null while receiving its remaining fragments. Any invalid fragment releases partial data before its failure escapes.