This repository contains a simple example of implementing web sockets in Python using the websockets library.
- Python 3.6 or above
- Websockets library version 12.0 or above
To install the websockets library, run the following command:
pip install websockets
To run the web socket example, follow these steps:
Clone this repository:
git clone https://github.com/iridhicode/web-socket-demo.git
Navigate to the project directory:
cd web-socket-demo
Navigate to the Server directory:
cd Server
Run the server:
python server.py
In a separate terminal, navigate to the Client directory:
cd Client
Run the client:
python client.py
Observe the communication between the server and the client in the respective terminal windows.