Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress messages to reduce latency #30

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Compress messages to reduce latency #30

merged 1 commit into from
Sep 13, 2021

Conversation

kazk
Copy link
Member

@kazk kazk commented Sep 13, 2021

In some extreme cases, the compression ratio is 20:1 (95% savings):

image


To inspect the size of compressed messages, use Wireshark:

tshark -Y websocket -i lo port $PORT

and compare against the length shown in browser (Chromium shows the length next to the data).

@kazk kazk merged commit b3f6fe7 into main Sep 13, 2021
@kazk kazk deleted the permessage-deflate branch September 14, 2021 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant