{"comment":{"created_at":"2011-10-21T15:12:41Z","body":"This change fixes it for me though it does not handle the change pertaining to the origin handling\r\n\r\nhttps://groups.google.com/a/chromium.org/group/chromium-html5/browse_thread/thread/9f8214e3a9ed037f?pli=1\r\n\r\ndiff --git a/tornado/websocket.py b/tornado/websocket.py\r\nindex 3a17f93..563b80a 100644\r\n--- a/tornado/websocket.py\r\n+++ b/tornado/websocket.py\r\n@@ -79,7 +79,7 @@ class WebSocketHandler(tornado.web.RequestHandler):\r\n         self.open_args = args\r\n         self.open_kwargs = kwargs\r\n\r\n-        if (self.request.headers.get(\"Sec-WebSocket-Version\") == \"8\" or\r\n+       if (self.request.headers.get(\"Sec-WebSocket-Version\") == \"13\" or self.request.headers.get(\"Sec-WebSocket-Version\") == \"8\" or\r\n             self.request.headers.get(\"Sec-WebSocket-Version\") == \"7\"):\r\n             self.ws_connection = WebSocketProtocol8(self)\r\n             self.ws_connection.accept_connection()\r\n","updated_at":"2011-10-21T15:12:41Z","url":"https://api.github.com/repos/facebook/tornado/issues/comments/2482408","id":2482408,"user":{"gravatar_id":"5bfd9346a7fd1c7c9b000e8952c8c5b5","avatar_url":"https://secure.gravatar.com/avatar/5bfd9346a7fd1c7c9b000e8952c8c5b5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/dspiteself","id":92689,"login":"dspiteself"}},"action":"created","issue":{"number":385,"created_at":"2011-10-19T05:08:19Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I run Chrome dev channel, which has updated its websocket version, breaking compatibility with tornado websockets.\r\n\r\nref: http://updates.html5rocks.com/2011/10/WebSockets-updated-to-latest-version-in-Chrome-Canary\r\n\r\nWhich suggests Sec-WebSocket-Version is now 13, but Wikipedia suggests Chromium is using something called [hybi 17](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17), which may or may not be the same.\r\n\r\nI imagine you guys are more familiar with what these things actually mean than I am.","comments":1,"title":"updated Websocket in Chrome/Chromium","updated_at":"2011-10-21T15:12:41Z","url":"https://api.github.com/repos/facebook/tornado/issues/385","id":1990705,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"d5b897c37001627c2e3ad3c1e8a7e6fb","avatar_url":"https://secure.gravatar.com/avatar/d5b897c37001627c2e3ad3c1e8a7e6fb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/minrk","id":151929,"login":"minrk"},"html_url":"https://github.com/facebook/tornado/issues/385","labels":[],"state":"open"},"legacy":{"issue_id":1990705,"comment_id":2482408}}