The Project is build on Python. It is a simple chat application using socket programming for multiple chat room The Project is build on python using socket programming.
Its a Multiple chat room app. User can create a new room, join an existing room, leave from the existing room, switch to other existing room, chat within the room and quit from the system.
Previous history of the chat room is stored in the server so whenever anyone wants to join a room he/she can see the previous history of the room.
- Clone the project in your desired location.
- Open Terminal
- write :
python3 chatServer.py 127.0.0.1
- It will show :
"Server is running on 127.0.0.1, 1131"
- Open at best 20 terminal for user you want. This app will allow only 20 client. If you want more user . go to chatServer.py and change the value of "Max_Clients".
- In each terminal write :
python3 chatClient.py 127.0.0.1.
- It will show:
Welcome to USASK ChatRoom.
Enter the name you want to display:
Commands: [list] to see the list of all rooms [join room_name] to join an existing room [create room_name] to create a new room [switch room_name] to switch to another room [leave] to leave the existing room [commands] to see the available COmmands [quit] to quit from the system Otherwise start typing and enjoy!
In the server interface it will display:
new says: name: john
New connection from: john.
Cheers.