Open andrewufrank opened 9 years ago
Right now, there is a disconnect
event that fires when the user closes the browser window. You can use this to clean up.
If you want to close the window from the server side, you're currently out of luck, as this hasn't been implemented yet.
@HeinrichApfelmus is it still not possible to initiate closing the browser window from the server? Is there a way to shut down the server at least? (I tried liftIOLater exitSuccess
but it seems to restart server, not shutdown it.)
i cannot find a way to cleanly stop the gui with a button and then execute cleanup actions. if a have a button to produce an error to force the server to stop . it restarts automatically and the code placed after starting the web server is never reached. i have a setup function for all gui layout and operations. it returns an action which must run after closing the application.
thank you!