mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Using WebSocket tunnnel for connection (HTTP Tunnel temporarily disabled - need support detection)
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user