new StaticHTTPTunnel(url, crossDomainopt)
Guacamole Tunnel which replays a Guacamole protocol dump from a static file received via HTTP. Instructions within the file are parsed and handled as quickly as possible, while the file is being downloaded.
||String||The URL of a Guacamole protocol dump.|
||false||Whether tunnel requests will be cross-domain, and thus must use CORS mechanisms and headers. By default, it is assumed that tunnel requests will be made to the same domain.|
The maximum amount of time to wait for data to be received, in milliseconds. If data is not received within this amount of time, the tunnel is closed with an error. The default value is 15000.
The current state of this tunnel.
The UUID uniquely identifying this tunnel. If not yet known, this will be null.
Connect to the tunnel with the given optional data. This data is typically used for authentication. The format of data accepted is up to the tunnel implementation.
||String||The data to send to the tunnel when connecting.|
Disconnect from the tunnel.
Send the given message through the tunnel to the service on the other side. All messages are guaranteed to be received in the order sent.
||The elements of the message to send to the service on the other side of the tunnel.|
Fired whenever an error is encountered by the tunnel.
||Guacamole.Status||A status object which describes the error.|
Fired once for every complete Guacamole instruction received, in order.
||String||The Guacamole instruction opcode.|
||Array||The parameters provided for the instruction, if any.|
Fired whenever the state of the tunnel changes.
||Number||The new state of the client.|