» Python: Make Web Chat App with Socket.IO » 1. Introduction » 1.1 Preparation

Preparation

Install Python

See How to install Python?.

Note: This project uses Python 3.12.2 and pip 24.0 for Python 3.12.

Pick an editor

Pick your favorite editor or use Visual Studio Code.

Learn Python basics

If you're not familiar with Python, you may try this tutorial: "Quick Introduction to Python."

What is Websocket?

The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.

What is Socket.IO?

Socket.IO is a library that enables low-latency, bidirectional and event-based communication between a client and a server. In most cases, the connection will be established with WebSocket, providing a low-overhead communication channel between the server and the client. In case the WebSocket connection is not possible, it will fall back to HTTP long-polling.