From 7a266eb6b02e4fabd59fb92ea1e84b65dbe032af Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 8 Mar 2012 08:14:18 -0800 Subject: [PATCH] Using WebSocket tunnnel for connection (HTTP Tunnel temporarily disabled - need support detection) --- guacamole/src/main/webapp/client.xhtml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guacamole/src/main/webapp/client.xhtml b/guacamole/src/main/webapp/client.xhtml index fb8c20c65..1a319ea11 100644 --- a/guacamole/src/main/webapp/client.xhtml +++ b/guacamole/src/main/webapp/client.xhtml @@ -101,10 +101,14 @@ window.onload = function() { window.setTimeout(function() { + var tunnel; + + // TODO: Detect WebSocket and websocket-tunnel + tunnel = new Guacamole.WebSocketTunnel("websocket-tunnel") + //tunnel = new Guacamole.HTTPTunnel("tunnel") + // Instantiate client - var guac = new Guacamole.Client( - new Guacamole.HTTPTunnel("tunnel") - ); + var guac = new Guacamole.Client(tunnel); // Add client to UI guac.getDisplay().className = "software-cursor";