From cc888a5b3eb748827ef3e59d212682ce45a4d89a Mon Sep 17 00:00:00 2001 From: vibul Date: Mon, 12 Mar 2012 11:30:18 +1100 Subject: [PATCH] Retested Websockets with Autobahn v0.4.10. --- .../http/websocketx/autobahn/package-info.java | 18 ++++++++++-------- .../websocketx/server/WebSocketServer.java | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java b/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java index 0e542990d9..cc77117120 100644 --- a/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java +++ b/src/main/java/org/jboss/netty/example/http/websocketx/autobahn/package-info.java @@ -26,13 +26,14 @@ * *

03. Intall Python Setup Tools: sudo apt-get install python-setuptools * - *

04. Install AutoBahn: sudo easy_install Autobahn + *

04. Install AutoBahn: sudo easy_install Autobahn. If you already have Autobahn installed, you may need + * to upgrade it: sudo easy_install --upgrade Autobahn. Make suer v0.4.10 is installed. * - *

05. Get AutoBahn testsuite source code: git clone git@github.com:oberstet/Autobahn.git + *

05. Get AutoBahn testsuite source code: git clone git@github.com:tavendo/AutobahnPython.git * - *

06. Go to AutoBahn directory: cd Autobahn + *

06. Go to AutoBahn directory: cd AutobahnPython * - *

07. Checkout stable version: git checkout v0.4.3 + *

07. Checkout stable version: git checkout v0.4.10 * *

08. Go to test suite directory: cd testsuite/websockets * @@ -47,11 +48,12 @@ * } * * - *

11. Run AutobahnServer in this package. + *

10. Run our AutobahnServer located in this package. If you are in Eclipse IDE, right click on + * AutobahnServer.java and select Run As > Java Application. * - *

11. Run the test python fuzzing_client.py. Note that the actual test case python code is - * located in /usr/local/lib/python2.6/dist-packages/autobahn-0.4.3-py2.6.egg/autobahn/cases - * and not in the checked out git repository. + *

11. Run the Autobahn test python fuzzing_client.py. Note that the actual test case python code is + * located with the easy_install package (e.g. in /usr/local/lib/python2.7/dist-packages/ + * autobahn-0.4.10-py2.7.egg/autobahn/cases) and not in the checked out git repository. * *

12. See the results in reports/servers/index.html */ diff --git a/src/main/java/org/jboss/netty/example/http/websocketx/server/WebSocketServer.java b/src/main/java/org/jboss/netty/example/http/websocketx/server/WebSocketServer.java index 1f811569b8..4f0f4295c4 100644 --- a/src/main/java/org/jboss/netty/example/http/websocketx/server/WebSocketServer.java +++ b/src/main/java/org/jboss/netty/example/http/websocketx/server/WebSocketServer.java @@ -37,6 +37,7 @@ import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; *

  • Chrome 14+ (draft-ietf-hybi-thewebsocketprotocol-10) *
  • Chrome 16+ (RFC 6455 aka draft-ietf-hybi-thewebsocketprotocol-17) *
  • Firefox 7+ (draft-ietf-hybi-thewebsocketprotocol-10) + *
  • Firefox 11+ (RFC 6455 aka draft-ietf-hybi-thewebsocketprotocol-17) * */ public class WebSocketServer {