Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 960 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 960 Bytes

Preview

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.

Run

gunicorn --bind=127.0.0.1:5000 --worker-class eventlet app:app

Links