WebSocket Deflate extension

    The API is production ready, but may be slightly modified in a minor release. This is why it’s marked with the @ExperimentalWebSocketExtensionsApi annotation. If you want to use this API you need to OptIn:

    If you want to leave your feedback or subscribe on updates, check KTOR-688 design issue.

    Context takeover

    Specify if the client (and server) should use compression window. Enabling these parameters reduce the amount of space allocated per single session. Please note that window size cannot be configured due to limitations of java.util.zip.Deflater API. The value is fixed to .

    These parameters are described in RFC-7692 Section 7.1.1

    Specify compress condition

    All calls to compressIf will be evaluated before compression takes place.

    Fine-tune list of protocols

    The list of protocols to send can be edited as needed using the method: