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.
Properties
Reference to the WebSocketExtensionFactory, which produced this extension.
List of WebSocket extension protocols which will be sent by client in headers. They are required to inform server that client wants to negotiate the current extension.
Functions
This method is called only for the client, when it receives the WebSocket upgrade response.
This method is called on each incoming frame before handling it in WebSocket session.
This method is called on each outgoing frame and handle it before sending.
This method is called only for the server, when it receives WebSocket session.