WebSocketDeflateExtension

Compress and decompress WebSocket frames to reduce amount of transferred bytes.

Usage

install(WebSockets) {
extensions {
install(WebSocketDeflateExtension)
}
}

Implements WebSocket deflate extension from RFC-7692. This implementation is using window size = 15 due to limitations of Deflater implementation.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Config

WebSocket deflate extension configuration.

Properties

Link copied to clipboard
open val factory: <Error class: unknown class><WebSocketDeflateExtension.Config, out <Error class: unknown class><WebSocketDeflateExtension.Config>>
Link copied to clipboard
open val protocols: List<<Error class: unknown class>>

Functions

Link copied to clipboard
open fun clientNegotiation(negotiatedProtocols: List<<Error class: unknown class>>): Boolean
Link copied to clipboard
open fun processIncomingFrame(frame: Frame): Frame
Link copied to clipboard
open fun processOutgoingFrame(frame: Frame): Frame
Link copied to clipboard
open fun serverNegotiation(requestedProtocols: List<<Error class: unknown class>>): List<<Error class: unknown class>>