Pike v8.1 release 6

Method Protocols.WebSocket.permessagedeflate()


Method permessagedeflate

object 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.