class Config
WebSocket deflate extension configuration.
Config()
WebSocket deflate extension configuration. |
var clientNoContextTakeOver: Boolean
Specify if the client drops the deflater state (reset the window) after each frame. |
|
var compressionLevel: Int
Compression level that is used for outgoing frames in the Deflate instance. |
|
var serverNoContextTakeOver: Boolean
Specify if the server drops the deflater state (reset the window) after each frame. |
fun compressIf(block: (frame: Frame) -> Boolean): Unit
Indicates if the outgoing frame should be compressed. |
|
fun compressIfBiggerThan(bytes: Int): Unit
Specify the minimum size of frame for compression. |
|
fun configureProtocols(block: (protocols: MutableList<WebSocketExtensionHeader>) -> Unit): Unit
Configure which protocols should send the client. |