Skip to content

Dhango Channels message compression #2141

Answered by carltongibson
arcanjo45 asked this question in Q&A
Discussion options

You must be logged in to vote

You could use @simonw's ASGI gzip middleware, that was itself extracted from Starlette.

https://github.com/simonw/asgi-gzip

At a high-level, either the consumer needs to do it (which I assume is what you have currently) or an ASGI middleware, or maybe the protocol server (uvicorn/Daphne/etc).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arcanjo45
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants