https://github.com/itsronalds/websocket-integration-node-python
A demonstration project illustrating real-time, bidirectional communication between a Node.js WebSocket server and a Python client.
https://github.com/itsronalds/websocket-integration-node-python
nodejs python sqlserver websocket
Last synced: 2 months ago
JSON representation
A demonstration project illustrating real-time, bidirectional communication between a Node.js WebSocket server and a Python client.
- Host: GitHub
- URL: https://github.com/itsronalds/websocket-integration-node-python
- Owner: itsronalds
- Created: 2024-10-18T03:26:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-12T15:50:45.000Z (about 1 year ago)
- Last Synced: 2025-06-12T16:51:32.754Z (about 1 year ago)
- Topics: nodejs, python, sqlserver, websocket
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebSocket Integration: Node.js Server & Python Client
Demonstration project showcasing real-time communication between a **WebSocket server built with Node.js** and a **client implemented in Python**.
## Main Features
- **WebSocket Server in Node.js**
Implements an efficient and simple server using `ws`, enabling real-time connections.
- **WebSocket Client in Python**
Lightweight client that interacts with the server using `websockets` or `websocket-client`.
- **Bidirectional Communication**
Send and receive real-time messages between both environments.
- **Simple and Well-Documented Code**
Designed for easy understanding, modification, and extension.
## Requirements
- [Node.js](https://nodejs.org/) (v14+ recommended)
- [Python](https://www.python.org/) (3.7+ recommended)
## Installation & Running
### 1. Clone the repository
```bash
git clone https://github.com/itsronalds/websocket-integration-node-python.git
cd websocket-integration-node-python
```
### 2. Set up and run the Node.js server
```bash
cd server
npm install
node server.js
```
### 3. Set up and run the Python client
```bash
cd ../client
pip install -r ../requirements.txt
python client.py
```
## Core Technologies
- **Node.js** + [ws](https://www.npmjs.com/package/ws)
- **Python** + [websocket-client](https://pypi.org/project/websocket-client/)