Config

class Config

WebSocket deflate extension configuration.

Constructors

Link copied to clipboard
fun Config()

Functions

Link copied to clipboard
fun compressIf(block: (frame: Frame) -> Boolean)

Indicates if the outgoing frame should be compressed.

Link copied to clipboard
fun compressIfBiggerThan(bytes: Int)

Specify the minimum size of frame for compression.

Link copied to clipboard
fun configureProtocols(block: (protocols: MutableList<WebSocketExtensionHeader>) -> Unit)

Configure which protocols should send the client.

Properties

Link copied to clipboard
var clientNoContextTakeOver: Boolean = false

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

Link copied to clipboard
var compressionLevel: Int

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

Link copied to clipboard
var serverNoContextTakeOver: Boolean = false

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