permessage-deflate

JSON →
library 0.1.7 ·javascript maintenance
verified Jun 7, 2026

Implements the permessage-deflate WebSocket protocol extension for compression of WebSocket messages. Version 0.1.7 is the latest stable release, last updated in 2018. It is designed as a plugin for the websocket-extensions library, providing per-message DEFLATE compression. Unlike alternative compression approaches, it follows the IETF hybi-permessage-compression draft and integrates seamlessly with the Faye WebSocket ecosystem. The package supports configuration of zlib compression levels, memory levels, strategies, context takeover, and window bits.