gorilla / websocket

Package gorilla/websocket is a fast, well-tested and widely used WebSocket implementation for Go.
https://gorilla.github.io
BSD 2-Clause "Simplified" License
22.31k stars 3.48k forks source link

Implement gzip compression #15

Closed cenkalti closed 10 years ago

cenkalti commented 10 years ago

Chrome supports gzip for websocket connections, let gorilla support it too.

fatih commented 10 years ago

I think wrapping the websocket's io.Reader with compress/gzip's NewReader function should be a good start to begin.

cenkalti commented 10 years ago

For reference: http://tools.ietf.org/html/draft-tyoshino-hybi-websocket-perframe-deflate-06

garyburd commented 10 years ago

Duplicate of #3.

It's not as simple as wrapping one of the existing readers with compress/gzip's NewReader. See the pages linked in #3 for more information.