ktor-http-cio / io.ktor.http.cio.websocket / Frame / Binary / <init>

<init>

Binary(fin: Boolean, packet: ByteReadPacket) Binary(fin: Boolean, buffer: ByteBuffer)

Represents an application level binary frame. In a RAW web socket session a big text frame could be fragmented (separated into several text frames so they have fin = false except the last one). Note that usually there is no need to handle fragments unless you have a RAW web socket session.