From: Michael Jumper Date: Thu, 8 Mar 2012 16:14:18 +0000 (-0800) Subject: Using WebSocket tunnnel for connection (HTTP Tunnel temporarily disabled - need suppo... X-Git-Url: http://git.alex.org.uk Using WebSocket tunnnel for connection (HTTP Tunnel temporarily disabled - need support detection) --- diff --git a/src/main/webapp/client.xhtml b/src/main/webapp/client.xhtml index fb8c20c..1a319ea 100644 --- a/src/main/webapp/client.xhtml +++ b/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";