Hi!
I am running the NX server on a machine with Ubuntu 16.04 and the client on Windows 10.
I am developing an application which runs on the server, and I need it to detect when the NX client connects or disconnects (either because the session was closed, or because the network connection was lost) and do it relatively fast (preferably less than 5 seconds).
I have tried periodically parsing the output of the command ‘nxserver –list’, but the command executes slowly (each execution takes a couple of seconds) and it doesn’t detect the client’s disconnection (due to network connection loss) fast enough.
Is there any other suggested way to check if a client is connected to the server or not? Perhaps some ‘heartbeat’ signal from the client I could monitor?
Thanks!
Dario