guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Jumper <>
Subject Re: Protocol plugin error messages at the Javascript client level
Date Fri, 03 Aug 2018 02:14:09 GMT
On Thu, Aug 2, 2018, 13:18 McRoy, Jeffrey (GE Healthcare) <> wrote:

> Hi Everyone,
> At the Javascript client level, is it possible to get error messages from
> the protocol plugins? GuacamoleSocket will return errors about making the
> connection to the server, but can you programmatically determine if the
> server was able to connect to the remote system and login successfully at
> the Javascript level?

Yes. Errors are communicated via the Guacamole protocol using the "error"
instruction which results in the Guacamole.Client onerror function being

You would need to provide a handler for onerror to handle such failures
within JavaScript.

If you need to handle these failures on the server side (to failover to an
alternative connection, for example), the FailoverGuacamoleSocket class can
be used to transparently intercept errors that occur early in the
connection and switch over to a different connection:

- Mike

View raw message