You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Matty Courtney <ma...@mattycourtney.com.INVALID> on 2021/10/27 19:01:06 UTC

Retrieving tunnel/connection details in Event Listener

I'd like to build an Event Listener that logs the name and/or hostname of a
connection that a user attempts to connect to.

Reading the docs at
https://guacamole.apache.org/doc/gug/event-listeners.html it seems that
this should be possible. I was particularly encouraged by the statement *"By
listening to tunnel lifecycle events, a listener extension could be used to
help coordinate startup and shutdown of machine resources; particularly
useful in cloud environments where minimizing running-but-idle resources is
an important cost savings measure."*.

I'm having difficulty figuring out how to retrieve this information from
the TunnelConnectEvent object that the Listener receives. I'd be super
grateful if someone has some example code they can point me to

Thanks in advance!

-Matty