{"id":15031070,"url":"https://github.com/dayvsonspacca/rwst","last_synced_at":"2025-04-09T21:23:32.579Z","repository":{"id":254335175,"uuid":"846257025","full_name":"dayvsonspacca/rwst","owner":"dayvsonspacca","description":"Test websockets servers via CLI","archived":false,"fork":false,"pushed_at":"2024-08-23T17:52:08.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T07:35:03.081Z","etag":null,"topics":["rust","rust-lang","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dayvsonspacca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-22T20:44:01.000Z","updated_at":"2024-08-26T11:47:47.000Z","dependencies_parsed_at":"2025-02-15T22:31:33.174Z","dependency_job_id":null,"html_url":"https://github.com/dayvsonspacca/rwst","commit_stats":null,"previous_names":["dayvsonspacca/rwst"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dayvsonspacca%2Frwst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dayvsonspacca%2Frwst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dayvsonspacca%2Frwst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dayvsonspacca%2Frwst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dayvsonspacca","download_url":"https://codeload.github.com/dayvsonspacca/rwst/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248113135,"owners_count":21049788,"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":["rust","rust-lang","websocket"],"created_at":"2024-09-24T20:14:50.654Z","updated_at":"2025-04-09T21:23:32.570Z","avatar_url":"https://github.com/dayvsonspacca.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rwst (Rust WebSocket Tester)\n\nRwst is a command-line tool designed to test WebSocket servers with ease. It allows you to connect to a WebSocket server, send messages, listen for incoming messages, and measure the time it takes for operations to complete. This tool is ideal for developers who need a quick and easy way to interact with and test WebSocket servers.\n\n## Features\n\n- **Connect**: Establish a connection with a WebSocket server.\n- **Ping**: Send a \"Ping\" message to the server and measure the round-trip time.\n- **Listen**: Continuously listen for incoming messages from the server.\n- **Send**: Send custom messages to the server and measure the time taken.\n- **Exit**: Gracefully disconnect from the server.\n\n## Installation\n\n1. Ensure you have Rust and Cargo installed. If not, you can install it from [rust-lang.org](https://www.rust-lang.org/).\n2. Install via cargo:\n   ```sh\n   cargo install rwst\n   ```\n\n## Usage\n\nTo use Rwst, simply run the binary and provide the WebSocket server URL as an argument:\n\n```sh\nrwst ws://example.com:port\n```\n\nOnce connected, you can choose from the following options:\n\n1. **Ping**: Sends a \"Ping\" message to the server and displays the time taken for the response.\n2. **Listen**: Listens for incoming messages from the server.\n3. **Send**: Prompts you to enter a custom message to send to the server.\n4. **Exit**: Disconnects from the server and exits the program.\n\n### Example\n\n```sh\n./rwst ws://echo.websocket.org\n```\n\nExample output:\n\n```\nConnecting to ws://echo.websocket.org...\nConnection with ws://echo.websocket.org established successfully! Took 1.234s\nEnter Command: Ping\nPong Took 0.002s\nEnter Command: Send\nMessage: Hello, WebSocket!\nMessage sent: Hello, WebSocket! Took 0.001s\nEnter Command: Listen\nMessage received: Hello, WebSocket!\nEnter Command: Exit\nDisconnecting from ws://echo.websocket.org\nYou chose to exit, bye 👋 see you later.\n```\n\n## Dependencies\n\n- **Clap**: Command-line argument parsing.\n- **Colored**: Terminal text coloring.\n- **Tungstenite**: WebSocket client library.\n- **Inquire**: Interactive prompts for command-line interfaces.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdayvsonspacca%2Frwst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdayvsonspacca%2Frwst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdayvsonspacca%2Frwst/lists"}