Skip to content

Client-Server Chat Room Implemented by Socket Programming in Python

License

Notifications You must be signed in to change notification settings

tongplw/Chat-Room-Socket-Programming-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client-Server Chat Room

This project is a chat room with one server and multiple clients. The server provides a chat room for clients to join. After joining the chat, the clients can send messages to the chat room where all chat messages are logged and displayed.

Getting Started

  1. Open a terminal and create a chat room by running Server.py
cd <root>
python Server.py
  1. In another terminal, create and add a client to the chat room by running Client.py
python Client.py [name] # Don't forget to declare the client's name
  1. You can add more clients in the room by running more Client.py in more terminals.

  2. Let's have a chat!

Demo

  1. First, open 3 terminals and run the code as following.

3 terminals

  1. Send messages from Person_A and Person_B to the chat room. Everyone in the room received messages immediately.

3 terminals

Contributors

Releases

No releases published

Packages

No packages published

Languages