Project
Real-Time WebSocket Chat Server
A multi-client chat server in Python that lets users on the same Wi-Fi network exchange messages instantly.
- Context
- Personal project
- Stack
- PythonasyncioWebSockets
Overview
I built a multi-client chat server that lets anyone on the same Wi-Fi network join and exchange messages in real time.
The core is an asynchronous broadcasting system built on asyncio: the server keeps track of every active connection and relays each incoming message to all of the other connected clients.
Highlights
- Designed an asynchronous broadcast loop that tracks active connections and relays each message to every other client.
- Handled connect, disconnect and cleanup with try/except/finally so dropped clients never leave stale connections behind.
- Kept the server stable as clients come and go, with no restart needed.
Next project
Online Store with Inventory Management