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.PerMessageDeflateOffer
autobahn.websocket.compress.PerMessageDeflateOfferAccept
autobahn.websocket.compress.PerMessageDeflateResponse
autobahn.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.PerMessageBzip2Offer
autobahn.websocket.compress.PerMessageBzip2OfferAccept
autobahn.websocket.compress.PerMessageBzip2Response
autobahn.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.PerMessageSnappyOffer
autobahn.websocket.compress.PerMessageSnappyOfferAccept
autobahn.websocket.compress.PerMessageSnappyResponse
autobahn.websocket.compress.PerMessageSnappyResponseAccept