Using WebSocket tunnnel for connection (HTTP Tunnel temporarily disabled - need support detection)

This commit is contained in:
Michael Jumper
2012-03-08 08:14:18 -08:00
parent b2704ffcad
commit 7a266eb6b0

View File

@@ -101,10 +101,14 @@
window.onload = function() { window.onload = function() {
window.setTimeout(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 // Instantiate client
var guac = new Guacamole.Client( var guac = new Guacamole.Client(tunnel);
new Guacamole.HTTPTunnel("tunnel")
);
// Add client to UI // Add client to UI
guac.getDisplay().className = "software-cursor"; guac.getDisplay().className = "software-cursor";