Skip to content

Commit

Permalink
Update example websocket client to use V17
Browse files Browse the repository at this point in the history
  • Loading branch information
veebs committed Nov 28, 2011
1 parent 1813556 commit 6fbc168
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public static void runClient() throws Exception {
MyCallbackHandler callbackHandler = new MyCallbackHandler();
WebSocketClientFactory factory = new WebSocketClientFactory();

// Connect with spec version 10 (try changing it to V00 and it will
// Connect with spec version 17 (try changing it to V10 or V00 and it will
// still work ... fingers crossed ;-)
WebSocketClient client = factory.newClient(new URI("ws://localhost:8080/websocket"),
WebSocketSpecificationVersion.V10, callbackHandler);
WebSocketSpecificationVersion.V17, callbackHandler);

// Connect
System.out.println("WebSocket Client connecting");
Expand Down

0 comments on commit 6fbc168

Please sign in to comment.