After the success handshake of WebSocket, could we used gzip compression?
Here are my tests:
- I use autobahn lib to build a server, then respon to client as:
HTTP/1.1 101 Switching Protocols content-encoding: gzip Connection: Upgrade Server: AutobahnPython/?.?.? Upgrade: WebSocket Sec-WebSocket-Accept: RIR8KmljoV8Cv9mdiLY7GM2nYMc=
- then my server uses gzip compression
- and the chrome browser got the result, but it told me that "could not decode a text frame as UTF-8"