An example of using server side events in a chat app with flask. Not to be confused with the flask extension called Flask-SSE.
NOTE: this app is for demonstration purposes only. It is not secure. It doesn't even prevent html injection
-
Redis must be running on localhost on the default port
-
Install python dependencies
pipenv sync
orpipenv sync --dev
if you want dev dependencies -
Start the flask app
pipenv run flask run
-
Open your browser to http://localhost:5000