mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +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