miguelgrinberg / flask-sock

Modern WebSocket support for Flask.
MIT License
272 stars 24 forks source link

add 'clock' example #45

Closed gbrault closed 1 year ago

gbrault commented 1 year ago

clock.py and index_clock.html show an example where:

The client clicking on the close button is closing the ws channel

miguelgrinberg commented 1 year ago

Thanks! I've merged this with some minor changes for consistency.

gbrault commented 1 year ago

You are welcome! Thanks for your work @miguelgrinberg