{"id":18510328,"url":"https://github.com/rerun-io/ewebsock","last_synced_at":"2025-05-15T02:08:16.226Z","repository":{"id":37005467,"uuid":"462690909","full_name":"rerun-io/ewebsock","owner":"rerun-io","description":"A Rust Websocket client that compiles to both native and web","archived":false,"fork":false,"pushed_at":"2025-04-15T09:43:51.000Z","size":4440,"stargazers_count":251,"open_issues_count":13,"forks_count":33,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-08T03:57:51.713Z","etag":null,"topics":["rust","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rerun-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-02-23T10:41:54.000Z","updated_at":"2025-04-23T13:05:58.000Z","dependencies_parsed_at":"2023-01-17T12:38:08.441Z","dependency_job_id":"c3655307-d88f-4e09-ba5f-e002f16ed451","html_url":"https://github.com/rerun-io/ewebsock","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"cd15a6c1a06506f15af748f460cf99170e13249b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rerun-io%2Fewebsock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rerun-io%2Fewebsock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rerun-io%2Fewebsock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rerun-io%2Fewebsock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rerun-io","download_url":"https://codeload.github.com/rerun-io/ewebsock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259384,"owners_count":22040820,"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","websocket"],"created_at":"2024-11-06T15:22:51.106Z","updated_at":"2025-05-15T02:08:16.183Z","avatar_url":"https://github.com/rerun-io.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ewebsock\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-rerun_io/ewebsock-8da0cb?logo=github\" height=\"20\"\u003e](https://github.com/rerun-io/ewebsock)\n[![Latest version](https://img.shields.io/crates/v/ewebsock.svg)](https://crates.io/crates/ewebsock)\n[![Documentation](https://docs.rs/ewebsock/badge.svg)](https://docs.rs/ewebsock)\n[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)\n[![Build Status](https://github.com/rerun-io/ewebsock/workflows/CI/badge.svg)](https://github.com/rerun-io/ewebsock/actions?workflow=CI)\n![MIT](https://img.shields.io/badge/license-MIT-blue.svg)\n![Apache](https://img.shields.io/badge/license-Apache-blue.svg)\n\nThis is a simple [WebSocket](https://en.wikipedia.org/wiki/WebSocket) library for Rust which can be compiled to both native and web (WASM).\n\n## Usage\n\n``` rust\nlet options = ewebsock::Options::default();\n// see documentation for more options\nlet (mut sender, receiver) = ewebsock::connect(\"ws://example.com\", options).unwrap();\nsender.send(ewebsock::WsMessage::Text(\"Hello!\".into()));\nwhile let Some(event) = receiver.try_recv() {\n    println!(\"Received {:?}\", event);\n}\n```\n\n## Testing\n\nFirst start the example echo server with:\n\n```sh\ncargo r -p echo_server\n```\n\nThen test the library with:\n\n```sh\n# native mode\ncargo run -p example_app\n\n# web mode\n# install trunk with `cargo install trunk` - https://trunkrs.dev/\n(cd example_app \u0026\u0026 trunk serve)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frerun-io%2Fewebsock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frerun-io%2Fewebsock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frerun-io%2Fewebsock/lists"}