MostAwesomeDude / txWS

Twisted WebSockets
Other
94 stars 29 forks source link

Chrome Sec-WebSocket-Version:13 #4

Closed ghost closed 12 years ago

ghost commented 12 years ago

Chrome now uses Sec-WebSocket-Version:13 (Chrome 16.0.912.59 beta)

According to the protocol spec wiki for pywebsocket (http://code.google.com/p/pywebsocket/wiki/WebSocketProtocolSpec) it looks like there are only semantic and editorial changes since the last supported version in txWS to HyBi-17.

The following addition to txws.py appears to be a workaround:

492a495,499

        elif version == "13":
            log.msg("Starting HyBi-13 conversation")
            self.sendHyBi07Preamble()
            self.flavor = HYBI07
            self.state = FRAMES
MostAwesomeDude commented 12 years ago

We don't currently support Chrome 16 here, but I see no reason that I can't make this patch now and then perhaps hack it later if it doesn't work perfectly.