Using WebSocket in Python

Learn how to create a WebSocket Server and Client in Python

Wei-Meng Lee
Level Up Coding
Published in
8 min readJul 14, 2023

--

Photo by Alex wong on Unsplash

In this article, I will talk about WebSocket — a single, long-lived connection between a client and a server. I will explain the problems with the stateless HTTP protocol, and how WebSocket overcomes the problem and allows you to create responsive web applications. For the samples in this article, I will make use of…

--

--

ACLP Certified Trainer | Blockchain, Smart Contract, Data Analytics, Machine Learning, Deep Learning, and all things tech (http://calendar.learn2develop.net).