ktor-http-cio / io.ktor.http.cio.websocket / readBytes

readBytes

fun Frame.readBytes(): ByteArray

Read binary content from a frame. For fragmented frames only returns this fragment.