mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Use Guacamole.ChainedTunnel when WebSocket is available (to safely fall back to HTTP if WebSocket fails).
This commit is contained in:
@@ -105,7 +105,10 @@
|
|||||||
|
|
||||||
// If WebSocket available, try to use it.
|
// If WebSocket available, try to use it.
|
||||||
if (window.WebSocket)
|
if (window.WebSocket)
|
||||||
tunnel = new Guacamole.WebSocketTunnel("websocket-tunnel")
|
tunnel = new Guacamole.ChainedTunnel(
|
||||||
|
new Guacamole.WebSocketTunnel("websocket-tunnel"),
|
||||||
|
new Guacamole.HTTPTunnel("tunnel")
|
||||||
|
);
|
||||||
|
|
||||||
// If no WebSocket, then use HTTP.
|
// If no WebSocket, then use HTTP.
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user