{"id":22334678,"url":"https://github.com/subhashpolisetti/realtime-websocket-client","last_synced_at":"2025-03-26T07:43:06.811Z","repository":{"id":260862813,"uuid":"875545828","full_name":"subhashpolisetti/realtime-websocket-client","owner":"subhashpolisetti","description":"This project demonstrates a WebSocket-based real-time communication system with a client-server setup and a basic user interface. The client sends 10,000 messages to the server, which responds to each message, showcasing efficient, long-lasting, full-duplex communication.","archived":false,"fork":false,"pushed_at":"2024-11-03T05:33:09.000Z","size":687,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T09:16:11.771Z","etag":null,"topics":["python","tkinter-gui","websocket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subhashpolisetti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T09:18:13.000Z","updated_at":"2024-11-03T05:49:01.000Z","dependencies_parsed_at":"2024-11-03T06:20:59.718Z","dependency_job_id":"6dcb3c86-02c4-41c8-9f4d-2bdb9ea9e1d4","html_url":"https://github.com/subhashpolisetti/realtime-websocket-client","commit_stats":null,"previous_names":["subhashpolisetti/realtime-websocket-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhashpolisetti%2Frealtime-websocket-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhashpolisetti%2Frealtime-websocket-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhashpolisetti%2Frealtime-websocket-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhashpolisetti%2Frealtime-websocket-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subhashpolisetti","download_url":"https://codeload.github.com/subhashpolisetti/realtime-websocket-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615004,"owners_count":20644376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","tkinter-gui","websocket"],"created_at":"2024-12-04T05:09:06.543Z","updated_at":"2025-03-26T07:43:06.791Z","avatar_url":"https://github.com/subhashpolisetti.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# WebSocket Client-Server Interface for Real-time Communication\n\nThis project demonstrates a WebSocket-based real-time communication system with a client-server setup and a basic user interface. The client sends 10,000 messages to the server, which responds to each message, showcasing efficient, long-lasting, full-duplex communication.\n\n## Table of Contents\n\n1. [Overview](#overview)\n2. [Features](#features)\n3. [Getting Started](#getting-started)\n   - [Prerequisites](#prerequisites)\n   - [Installation](#installation)\n4. [Running the Application](#running-the-application)\n   - [Start the Server](#start-the-server)\n   - [Run the Client](#run-the-client)\n   - [Launch the UI](#launch-the-ui)\n5. [Project Structure](#project-structure)\n6. [How It Works](#how-it-works)\n7. [Contributing](#contributing)\n8. [License](#license)\n\n## Overview\n\nThis project uses WebSockets to facilitate real-time communication between a client and a server, demonstrating the benefits of WebSocket's full-duplex connection for applications requiring continuous data exchange.\n\n## Features\n\n- **Full-duplex communication**: Both client and server can send and receive messages simultaneously.\n- **Efficient message handling**: Test with 10,000 messages to ensure no messages are dropped.\n- **Basic UI**: A Tkinter-based graphical user interface for user interactions.\n\n## Getting Started\n\n### Prerequisites\n\n- **Python 3.x**: Ensure you have Python installed.\n- **WebSocket Library**: Install the WebSocket library to run the server and client applications.\n  \n  ```bash\n  pip install websocket-client\n  ```\n\n### Installation\n\n1. Clone this repository.\n   \n   ```bash\n   git clone https://github.com/yourusername/websocket-client-server.git\n   cd websocket-client-server\n   ```\n\n2. Install the necessary packages:\n   \n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Running the Application\n\n### Start the Server\n\nThe server listens for client messages and responds to each, appending a random number to the incoming message.\n\nRun the server:\n\n```bash\npython websocketserver.py\n```\n\n### Run the Client\n\nThe client will send 10,000 messages to the server, receiving and displaying the server’s responses.\n\nRun the client:\n\n```bash\npython websocketclient.py\n```\n\n### Launch the UI\n\nThis application includes a simple Tkinter-based user interface to monitor communication.\n\nTo start the UI:\n\n```bash\npython websocket_ui.py\n```\n\n## Project Structure\n\n- **`websocketserver.py`**: Handles server-side WebSocket connections, processes incoming client messages, and sends responses.\n- **`websocketclient.py`**: Connects to the server as a client, sending messages and handling server responses.\n- **`websocket_ui.py`**: Provides a graphical interface for users to interact with the WebSocket client-server system.\n\n## How It Works\n\n1. **Connection**: The client establishes a connection to the server using the WebSocket protocol.\n2. **Message Exchange**: The client sends 10,000 messages to test the connection, and the server responds to each by appending a random number.\n3. **UI Interaction**: The UI allows users to interact with the client-server setup and monitor real-time data exchange.\n\n## Contributing\n\nContributions are welcome! Please fork this repository and submit a pull request for any improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhashpolisetti%2Frealtime-websocket-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhashpolisetti%2Frealtime-websocket-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhashpolisetti%2Frealtime-websocket-client/lists"}