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

Compression support #3

Open
stuta opened this issue Oct 25, 2013 · 7 comments
Open

Compression support #3

stuta opened this issue Oct 25, 2013 · 7 comments

Comments

@stuta
Copy link

stuta commented Oct 25, 2013

Hello.

Is it possible to get some kind of data compression like in the link below? Json payload can be very big and native compression (in browser side) woud be abolutely fanstastic.

http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-13

@agentzh
Copy link
Member

agentzh commented Oct 25, 2013

@stuta Do you know any of the mainstream web browsers already support this per-message compression extension?

@stuta
Copy link
Author

stuta commented Oct 26, 2013

http://stackoverflow.com/questions/19298651/how-does-websocket-compress-messages
http://www.ietf.org/mail-archive/web/hybi/current/msg10109.html

"Some of the extensions seen in the wild:

x-webkit-deflate-frame - an early proposed compression that compresses each raw websocket data frame. Seen in use by Chrome and Safari.
perframe-deflate - a renamed version of the above compression. Seen in use by various websocket server implementations, and also briefly showed up in various WebKit based clients.
permessage-deflate - the name of the formalized spec for using deflate to compress entire messages, regardless of the number of websocket frames.
Of note, the permessage-deflate is the first in a line of PMCE (Per-Message Compression Extensions) that will eventually include other compression schemes (ones being discussed are permessage-bzip2, permessage-lz4, and permessage-snappy)"

So Safari, Chrome and Chrome Canary have something.

Javascript impelementations of compression algorithms are very slow. I don't care what kind of compression technique is used, but something is needed. I'm sure this will come soon and it will be huge benifit when trasferring big amounts of json data.

I'm redy to do performance tests with Chrome Canary or with any other browser.

@agentzh
Copy link
Member

agentzh commented Oct 26, 2013

@stuta Thank you for the information. It'll be great if you can create your own git branch and experiment with the compression extension.

@bungle
Copy link
Member

bungle commented Nov 27, 2013

@moteus
Copy link

moteus commented Mar 22, 2016

Hello. I write extension plugin manager for websocket and permessage-deflate extension. I test it with my websocket implementation and it pass all AutoBahn tests (client and server).
I think it should be quite easy to integrate it to your library.

@agentzh
Copy link
Member

agentzh commented Mar 22, 2016

@moteus Pull requests welcome.

@edubart
Copy link

edubart commented Jun 5, 2017

Compression support integrated in this library would be great.

Meanwhile do anyone have an example using compression with this library in conjunction with a plugin like @moteus's extension?

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

5 participants