[Xlightweb-develop] xlightweb secure websocket
Status: Inactive
Brought to you by:
grro
|
From: Michael C. <qp...@ya...> - 2011-01-10 21:44:57
|
Hi,
I am having problems with secure websocket. I am using xlightweb 2.13.2 and secure websocket does not work. There's an error during handshake on openWebSocketConnection(). I am not able verify if xlightweb secure websocket would work through a proxy. My jetty websocket servlet is an echo servlet. It would be really nice to have secure websocket working through a proxy...
Thx!
HttpClient httpClient = new HttpClient(SSLContext.getDefault());
//httpClient.setProxyHost("127.0.0.1");
//httpClient.setProxyPort(8888);
System.out.println("proxy host: 127.0.0.1 port 8888:->"+uri);
IWebSocketConnection webSocketConnection2 = httpClient.openWebSocketConnection(:wss://192.168.151.105:8443/MyWebSocket/MyWebSocketServlet");
TextMessage msg = new TextMessage("Hello");
webSocketConnection2.writeMessage(msg);
|