From cb67a03239600710320f1dddc7f23a21f815ddb7 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) --- src/main/webapp/client.xhtml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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"; -- 1.7.10.4