Permalink
Browse files

Switching to hybi-10 protocol.

  • Loading branch information...
1 parent 1646609 commit 7e12c8a6a24290c39abd56c9bb380f2d711cf503 @gimite committed Sep 17, 2011
View
@@ -121,7 +121,7 @@ Note that it's technically possible that client sends arbitrary string as Cookie
### Proxy support
-[The WebSocket spec](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07) specifies instructions for User Agents to support proxied connections by implementing the HTTP CONNECT method.
+[The WebSocket spec](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10) specifies instructions for User Agents to support proxied connections by implementing the HTTP CONNECT method.
The AS3 Socket class doesn't implement this mechanism, which renders it useless for the scenarios where the user trying to open a socket is behind a proxy.
@@ -149,9 +149,8 @@ Install [Flex 4 SDK](http://opensource.adobe.com/wiki/display/flexsdk/Download+F
## WebSocket protocol versions
-- web-socket-js supports [Hixie 76 version](http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76) of WebSocket protocol by default i.e. in [master branch](https://github.com/gimite/web-socket-js).
-- If you want to try newer [Hybi 07 version](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07), check out from [hybi-07 branch](https://github.com/gimite/web-socket-js/tree/hybi-07). This will become the master branch in the future, probably when Chrome switches to Hybi 07.
-- Hixie 75 or before is no longer supported.
+- web-socket-js supports [Hybi 10 version](http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10) of WebSocket protocol.
+- Hixie 76 or before is no longer supported.
## License
View
Binary file not shown.
View
Binary file not shown.
@@ -1,7 +1,7 @@
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
// Reference: http://dev.w3.org/html5/websockets/
-// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07
+// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10
package net.gimite.websocket {
@@ -272,7 +272,7 @@ public class WebSocket extends EventDispatcher {
"Connection: Upgrade\r\n" +
"Sec-WebSocket-Key: {2}\r\n" +
"Sec-WebSocket-Origin: {3}\r\n" +
- "Sec-WebSocket-Version: 7\r\n" +
+ "Sec-WebSocket-Version: 8\r\n" +
"Cookie: {4}\r\n" +
"{5}" +
"\r\n",
@@ -389,7 +389,7 @@ public class WebSocket extends EventDispatcher {
onError(
"The WebSocket server speaks old WebSocket protocol, " +
"which is not supported by web-socket-js. " +
- "It requires WebSocket protocol HyBi 7. " +
+ "It requires WebSocket protocol HyBi 10. " +
"Try newer version of the server if available.");
return false;
}
@@ -1,7 +1,5 @@
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
-// Reference: http://dev.w3.org/html5/websockets/
-// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07
package net.gimite.websocket {
@@ -1,7 +1,5 @@
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
-// Reference: http://dev.w3.org/html5/websockets/
-// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07
package net.gimite.websocket {
View
@@ -1,7 +1,7 @@
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
// Reference: http://dev.w3.org/html5/websockets/
-// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07
+// Reference: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10
(function() {

0 comments on commit 7e12c8a

Please sign in to comment.