Merge branch 'loadable-websocket-support' into unstable

This commit is contained in:
Michael Jumper
2012-03-09 12:33:37 -08:00
3 changed files with 123 additions and 3 deletions

View File

@@ -28,6 +28,11 @@
</session-timeout>
</session-config>
<!-- Automatically detect and load WebSocket support -->
<listener>
<listener-class>net.sourceforge.guacamole.net.basic.WebSocketSupportLoader</listener-class>
</listener>
<!-- Basic Login Servlet -->
<servlet>
<description>Login servlet.</description>

View File

@@ -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";