1.7 KiB
1.7 KiB
WebSocket Compression
Autobahn|Python supports the following WebSocket extensions for compression:
- permessage-deflate
- permessage-bzip2
- permessage-snappy
You can find a complete example here.
Per-Message Deflate
The following classes provide the API to the permessage-deflate WebSocket extension functionality of AutobahnPython.
autobahn.websocket.compress.PerMessageDeflateOfferautobahn.websocket.compress.PerMessageDeflateOfferAcceptautobahn.websocket.compress.PerMessageDeflateResponseautobahn.websocket.compress.PerMessageDeflateResponseAccept
Per-Message Bzip2
The following classes provide the API to the (non-standard) permessage-bzip2 WebSocket extension functionality of Autobahn|Python.
autobahn.websocket.compress.PerMessageBzip2Offerautobahn.websocket.compress.PerMessageBzip2OfferAcceptautobahn.websocket.compress.PerMessageBzip2Responseautobahn.websocket.compress.PerMessageBzip2ResponseAccept
Per-Message Snappy
The following classes provide the API to the (non-standard) permessage-snappy WebSocket extension functionality of Autobahn|Python.
autobahn.websocket.compress.PerMessageSnappyOfferautobahn.websocket.compress.PerMessageSnappyOfferAcceptautobahn.websocket.compress.PerMessageSnappyResponseautobahn.websocket.compress.PerMessageSnappyResponseAccept