A basic chat application written in Python where clients can connect to the server by sending SIGNIN request.
Once connected, they can chat with the other available connected clients in real time.
- Python 3.10 or later
- Pip 22.0.2 or later (Installed from python 3)
- Packages - argparse, json, select and socket
Run the server using the following command:
./server.py -sp <port_number>
Run the clients using the following command:
./client.py -u <user_name> -sip <server_ip> -sp <port_number>
Commands available to the clients:
SIGNIN <user-name>
LIST
SEND <target-username> MESSAGE
LIST
command stores the online clients information locally on the client. Hence, before making any newsend
request, we should callLIST
to fetch the latest information