FlaskWithSocketio
Socket.IO allows bi-directional communication between client and server. Bi-directional communications are enabled when a client has Socket.IO in the browser, and a server has also integrated the Socket.IO package to establish the connection,and to exchange data between client and server.
Dependencies
In the server:
- Python, flask and flask-socketio library.
in the client:
- socketio is already imported for you;just check if there is a new version to update the link.
Executing program
- if you have flask installed just open flask_app.py in your IDE and hit run.
- then open you browser and head over to http://yourlocalip:5000/
- or from your terminal
python3 flask_app.py
or
flask run