Restore use of WebSocket.

This commit is contained in:
Michael Jumper 2016-07-08 15:39:45 -07:00
parent 97fd0b8272
commit 24dbd884ad

View File

@ -964,14 +964,14 @@ GuacUI.Client.connect = function() {
var tunnel; var tunnel;
// If WebSocket available, try to use it. // If WebSocket available, try to use it.
/*if (window.WebSocket) if (window.WebSocket)
tunnel = new Guacamole.ChainedTunnel( tunnel = new Guacamole.ChainedTunnel(
new Guacamole.WebSocketTunnel("websocket-tunnel"), new Guacamole.WebSocketTunnel("websocket-tunnel"),
new Guacamole.HTTPTunnel("tunnel") new Guacamole.HTTPTunnel("tunnel")
) );
// If no WebSocket, then use HTTP. // If no WebSocket, then use HTTP.
else*/ else
tunnel = new Guacamole.HTTPTunnel("tunnel"); tunnel = new Guacamole.HTTPTunnel("tunnel");
// Instantiate client // Instantiate client