Update example websocket client to use V17

This commit is contained in:
Veebs 2011-11-29 10:19:47 +11:00
parent 181355665b
commit 6fbc168cbf

View File

@ -59,10 +59,10 @@ public class App {
MyCallbackHandler callbackHandler = new MyCallbackHandler(); MyCallbackHandler callbackHandler = new MyCallbackHandler();
WebSocketClientFactory factory = new WebSocketClientFactory(); 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 ;-) // still work ... fingers crossed ;-)
WebSocketClient client = factory.newClient(new URI("ws://localhost:8080/websocket"), WebSocketClient client = factory.newClient(new URI("ws://localhost:8080/websocket"),
WebSocketSpecificationVersion.V10, callbackHandler); WebSocketSpecificationVersion.V17, callbackHandler);
// Connect // Connect
System.out.println("WebSocket Client connecting"); System.out.println("WebSocket Client connecting");