python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

Add shutdown_delay on the start() function parameter #529

Closed gaetan1903 closed 3 years ago

gaetan1903 commented 3 years ago

timer configurable for Eel's shutdown detection mechanism, whereby when any websocket closes, it waits shutdown_delay seconds (default 1 second), and then checks if there are now any websocket connections. If not, then Eel closes. In case the user has closed the browser and wants to exit the program.

Try to fix #355 issues: Increase the value shutdown_delay higher to avoid stopping Eel.

gaetan1903 commented 3 years ago

how about it @ChrisKnott ?

yunyuyuan commented 1 year ago

This pr has not been released,latest release is 0.14.0 at 2020,so shutdown_delay is not available yet.🥲

samuelhwilliams commented 1 year ago

@dstricks Chris and I never released this! 😱 Could be a good candidate for you to prepare a 0.15.0 release. You'll need to add entries to the changelog, bump the version number, ands prepare a version bump PR (similar to https://github.com/python-eel/Eel/pull/382).

If you want to put that up, I'm happy to approve it. After it's in you can tag the release from here: https://github.com/python-eel/Eel/releases/new and it should automatically get packaged up and released.

dstricks commented 1 year ago

@samuelhwilliams Sounds good. Will be the next thing I work on...

dstricks commented 1 year ago

v0.15.0 has been released and is available on PyPI.org