Skip to main content

Module compression

Module compression 

Source
Expand description

WebSocket message decompression utilities

Provides gzip decompression for WebSocket messages received from the server. The server compresses messages over 512 bytes automatically.

Enums§

DecompressError
Decompression error types

Functions§

decompress_gzip
Decompress gzip data using miniz_oxide (pure Rust, WASM-compatible)
decompress_gzip_with_limit
Decompress gzip data with a maximum output size limit.
decompress_if_gzip
Decompress gzip data, or return the input unchanged.
is_gzip
Check if data is gzip compressed (magic bytes check)