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

Enable websocket compression in wsmc #23

Open
deathcap opened this issue Jan 17, 2016 · 1 comment
Open

Enable websocket compression in wsmc #23

deathcap opened this issue Jan 17, 2016 · 1 comment

Comments

@deathcap
Copy link
Owner

https://tools.ietf.org/html/rfc7692 Compression Extensions for WebSocket (December 2015)
https://www.igvita.com/2013/11/27/configuring-and-optimizing-websocket-compression/

This may allow disabling MC's own packet compression (compressionThreshold). It might also be faster (native browser support vs node deflate) than browserified node-minecraft-protocol's compression. Could also remove the uncompressedDataLength prefix field from the WSMC protocol (varint, 0 = uncompressed; no longer needed at all).

https://www.igvita.com/2013/11/27/configuring-and-optimizing-websocket-compression/#selective - could use this to only compress packets beyond a certain size threshold (just like MC's >256 bytes etc., so smaller (example: position update packets) are not needlessly compressed).

@deathcap
Copy link
Owner Author

Browser support:

Request for adding to caniuse (to conveniently track other browser support): Fyrd/caniuse#2216

[email protected] (websockets/ws#403) supports per-message compression

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

No branches or pull requests

1 participant