How stranger-khalid/multi-client-chat-python works
This is a desktop multi-client chat application. A user enters a username in the Tkinter client, which connects to the TCP server; the server handles each connection in a thread, routes public or private messages and online-user updates, and the client displays received events. The graph separates client UI, client networking, server sessions, and server routing while keeping their shared source paths. Relationships follow the excerpts or README; some server internals are represented at the responsibility level because the source excerpt is partial.
Main entry points: client.py Client connection · server.py Client sessions
Components 7
Desktop client
- Chat interface
client.py - Client connection
client.py
Chat server
- TCP listener
server.py - Client sessions
server.py
Chat services
- Online users
server.py - Message routing
server.py
Other components
- Chat user
Connections 8
- Chat user → Chat interface: uses
README.md - Chat interface → Client connection: connects and sends
client.py - Client connection → TCP listener: TCP connection
README.md - TCP listener → Client sessions: starts thread
server.py - Client sessions → Online users: registers users
server.py - Client sessions → Message routing: dispatches messages
server.py - Message routing → Client connection: sends chat events
README.md - Client connection → Chat interface: queues received events
client.py