Websocket Timer (chech it live)
Example Flask websocket project. Based on Flask-SocketIO.
Flask server manage Timer with REST API requests (Start/Stop). Server emit timer events (timer value two times per sec) and send them via websockts to frontpage. Also, start/stop events are stored in a database (Postgres).
The application is packaged in a docker image and a docker-compose is prepared for deploying a service.
gunicorn --bind=127.0.0.1:5000 --worker-class eventlet app:app