This document summarizes how to create a web chat using Flask and SocketIO. It discusses how Flask is a microframework for Python, and SocketIO enables real-time bidirectional communication between client and server. Flask-SocketIO gives Flask applications access to low latency bidirectional communications. The document provides code samples for initializing the server and client, connecting, sending and receiving messages, using rooms and private messaging. It also mentions additional features like namespaces, sessions, and background tasks.
3. Flask is a microframework for Python based
on Werkzeug, Jinja 2 and good intentions.
http://flask.pocoo.org/
4. SocketIO
Socket.IO enables real-time bidirectional event-
based communication.
It works on every platform, browser or device,
focusing equally on reliability and speed.
https://socket.io/
9. Flask-SocketIO gives Flask applications access
to low latency bi-directional communications
between the clients and the server. The client-
side application can use any of the SocketIO
official clients libraries in Javascript, C++, Java
and Swift, or any compatible client to establish
a permanent connection to the server.
https://flask-socketio.readthedocs.io
22. Namespace
Socket.IO allows you to “namespace” your
sockets, which essentially means assigning
different endpoints or paths.
This is a useful feature to minimize the number of
resources (TCP connections) and at the same
time separate concerns within your application
by introducing separation between
communication channels.
https://socket.io/docs/rooms-and-namespaces