To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I would like to appraise the moment when user will logout from the application including more extreme situation like computer crash.
I have added Button.ClickListener to MainWindow but there is one problem with it. The application is trying to communicate with server by every single clickment. For users who have slow speed connection it is really serious problem.
There is a way to handle not every single clickment but comunication with server?
The WindowCloseListener is not support such a extreme situation.
Could you give me another efficient solution how to find out about the moment when user is not active any more? I would like to have information with 10 min precision. After such a time session is going to expired.