mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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.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";
|
||||||
|
Reference in New Issue
Block a user