ktor-http-cio / io.ktor.http.cio.websocket / WebSocketDeflateExtension / Config / compressIf

compressIf

fun compressIf(block: (frame: Frame) -> Boolean): Unit

Indicates if the outgoing frame should be compressed.

Compress the frame only if all conditions passed.