I am using the Debug Server Scripting(DSS) in javascript to try to implement the onDisconnect() in the SessionEvents class.
I’ve tried various implementations and I’m struggling with how to implement it. I see in the example code you can get a scripting object by doing the following: var script = ScriptingEnvironment.instance();
However, I don’t see a comparable example for doing an event/listener, specially I’m struggling with the interfaces. Are there any examples on how to addListener() for an event and then handle the event?