Method Protocols.WebSocket.permessagedeflate()


Method permessagedeflate

extension_factory permessagedeflate(void|mapping default_options)

Description

Returns an extension factory which implements the permessage-deflate WebSocket extension. It uses the default options from deflate_default_options. Due to how the permessage-deflate extension works, defragmented frames will be recombined automatically.

Note

If the permessage-deflate extension is not being used, it falls back to use defragment.