- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class WebSocketSupportLoader
extends Object
implements javax.servlet.ServletContextListener
Simple ServletContextListener which loads a WebSocket tunnel implementation
if available, using the Servlet 3.0 API to dynamically load and install
the tunnel servlet.
Note that because Guacamole depends on the Servlet 2.5 API, and 3.0 may
not be available or needed if WebSocket is not desired, the 3.0 API is
detected and invoked dynamically via reflection.
Tests have shown that while WebSocket is negligibly more responsive than
Guacamole's native HTTP tunnel, downstream performance is not yet a match.
This may be because browser WebSocket implementations are not optimized for
throughput, or it may be because servlet container WebSocket implementations
are in their infancy, or it may be that OUR WebSocket-backed tunnel
implementations are not efficient. Because of this, WebSocket support is
disabled by default. To enable it, add the following property to
your guacamole.properties:
enable-websocket: true
- Author:
- Michael Jumper