Nick,

I want to get a message when connection has finished.
e.g. the user has closed the session browser windows.

If recording is enabled. I can see the lock status to tell its complete.
Otherwise I have no idea.

I use the API pass JSON with connection details and get Guacamole Auth token. 
The Guacamole database is not used.

Hope that makes sense.   Thanks for help!

From: Nick Couchman [mailto:[email protected]]
Sent: 01 April 2020 18:07
To: [email protected]
Subject: Re: guacamole_connection_history in SRC

On Wed, Apr 1, 2020 at 12:36 PM Adrian Owen 
<[email protected]<mailto:[email protected]>> wrote:
I use custom api to get authentication Token from guacamole and use to connect.

Guacamole writes entry to the guacamole_connection_history table when 
connection completes.

I would like to put a hook in that spot to make a call out to pass a message to 
my application.

The bigger question is would this work, and is it worth pursuing?


Well, it might work, but, there might be a couple of other better/easier ways 
to do this.  First, Guacamole publishes several Events and has a framework for 
EventListeners:

http://guacamole.apache.org/doc/gug/event-listeners.html

One of the available Event Listeners is the TunnelClose event:

https://github.com/apache/guacamole-client/blob/master/guacamole-ext/src/main/java/org/apache/guacamole/net/event/TunnelCloseEvent.java

Depending on what you're trying to do, you might be able to implement an 
extension which listens for these events and does something based on them.

The other option would be to create a decorating extension that decorates the 
JDBC modules and then overrides the necessary methods in the JDBC connection to 
take whatever action you want to take when the connection closes.

Can you provide more detail on what you're trying to do?  We might be able to 
help point you in the correct direction...

-Nick

Reply via email to