{"id":19741083,"url":"https://github.com/lukman-01/simple-client","last_synced_at":"2026-06-14T05:32:45.041Z","repository":{"id":219290169,"uuid":"748091279","full_name":"Lukman-01/simple-client","owner":"Lukman-01","description":"Rust WebSocket client allows you to connect to a WebSocket server and process real-time data","archived":false,"fork":false,"pushed_at":"2024-01-26T14:28:37.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T06:23:42.798Z","etag":null,"topics":["async","concurrent-programming","rust","thread","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Lukman-01.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}},"created_at":"2024-01-25T08:58:35.000Z","updated_at":"2024-01-26T14:31:53.000Z","dependencies_parsed_at":"2024-01-26T15:27:02.079Z","dependency_job_id":"b93942bd-f549-448b-b164-7fde3a10cac4","html_url":"https://github.com/Lukman-01/simple-client","commit_stats":null,"previous_names":["lukman-01/simple-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lukman-01/simple-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lukman-01%2Fsimple-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lukman-01%2Fsimple-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lukman-01%2Fsimple-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lukman-01%2Fsimple-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lukman-01","download_url":"https://codeload.github.com/Lukman-01/simple-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lukman-01%2Fsimple-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34310801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["async","concurrent-programming","rust","thread","websocket"],"created_at":"2024-11-12T01:24:37.298Z","updated_at":"2026-06-14T05:32:45.024Z","avatar_url":"https://github.com/Lukman-01.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust WebSocket Client\n\nA Rust WebSocket client application for processing real-time data from a WebSocket server.\n\n## Introduction\n\nThis Rust WebSocket client allows you to connect to a WebSocket server and process real-time data. It consists of two modes: 'cache' and 'average'. The 'cache' mode fetches data from the WebSocket server and stores it in a file, while the 'average' mode computes the average of data received from the server.\n\n## Features\n\n- Two operational modes: 'cache' and 'average'.\n- Real-time data processing from a WebSocket server.\n- Data caching with timestamp in 'cache' mode.\n- Computation of average data values in 'average' mode.\n\n## Getting Started\n\nFollow these instructions to get started with the project.\n\n### Prerequisites\n\nBefore running the application, make sure you have the following prerequisites installed:\n\n- [Rust](https://www.rust-lang.org/tools/install) (Rust programming language)\n- [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) (Rust package manager)\n\n### Installation\n\n1. Clone the repository to your local machine:\n\n   ```sh\n   git clone https://github.com/yourusername/rust-websocket-client.git\n   ```\n\n2. Change to the project directory:\n\n   ```sh\n   cd rust-websocket-client\n   ```\n\n3. Build the project:\n\n   ```sh\n   cargo build --release\n   ```\n\n## Usage\n\nTo use the Rust WebSocket client, you can choose between two modes:\n\n### Cache Mode\n\nIn 'cache' mode, the client fetches data from the WebSocket server and caches it in a file with a timestamp.\n\n```sh\n./target/release/rust-websocket-client --mode cache --times 10\n```\n\n- `--mode cache`: Specifies the 'cache' mode.\n- `--times 10`: Optional. Number of times to fetch data (default is 10).\n\n### Average Mode\n\nIn 'average' mode, the client computes the average of data received from the WebSocket server.\n\n```sh\n./target/release/rust-websocket-client --mode average\n```\n\n- `--mode average`: Specifies the 'average' mode.\n\n## Project Structure\n\nThe project includes the following Rust source files:\n\n- `main.rs`: Entry point of the application.\n- `cache.rs`: Implements the 'cache' mode functionality.\n- `compute_average.rs`: Implements the 'average' mode functionality.\n\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukman-01%2Fsimple-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukman-01%2Fsimple-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukman-01%2Fsimple-client/lists"}