Config

class Config

WebSocket deflate extension configuration.

Constructors

<init>

Config()

WebSocket deflate extension configuration.

Properties

clientNoContextTakeOver

var clientNoContextTakeOver: Boolean

Specify if the client drops the deflater state (reset the window) after each frame.

compressionLevel

var compressionLevel: Int

Compression level that is used for outgoing frames in the Deflate instance.

serverNoContextTakeOver

var serverNoContextTakeOver: Boolean

Specify if the server drops the deflater state (reset the window) after each frame.

Functions

compressIf

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

Indicates if the outgoing frame should be compressed.

compressIfBiggerThan

fun compressIfBiggerThan(bytes: Int): Unit

Specify the minimum size of frame for compression.

configureProtocols

fun configureProtocols(
    block: (protocols: MutableList<WebSocketExtensionHeader>) -> Unit
): Unit

Configure which protocols should send the client.