A flask app demonstrating server sent event streams on the server and consuming the streams client side using EventSource and Fetch API
The quickest way to see the code in action is to run on Repl.it
Python 3
$ pip install -r requirements.txt
$ python main.py