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";