{"id":26945774,"url":"https://github.com/zbrdeev/webchaussette","last_synced_at":"2025-04-02T19:16:13.427Z","repository":{"id":235770181,"uuid":"786507497","full_name":"ZbrDeev/webchaussette","owner":"ZbrDeev","description":"Fast, powerful, and easy-to-set-up WebSocket library","archived":false,"fork":false,"pushed_at":"2024-04-25T20:04:50.000Z","size":71,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T01:22:28.256Z","etag":null,"topics":["fast","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZbrDeev.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-04-14T17:14:02.000Z","updated_at":"2024-08-14T13:54:27.000Z","dependencies_parsed_at":"2024-04-24T15:07:36.914Z","dependency_job_id":"4dfbf5d8-1864-44d9-8c67-0e154f89e61b","html_url":"https://github.com/ZbrDeev/webchaussette","commit_stats":null,"previous_names":["veronideev/webchaussette","zbrdeev/webchaussette"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZbrDeev%2Fwebchaussette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZbrDeev%2Fwebchaussette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZbrDeev%2Fwebchaussette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZbrDeev%2Fwebchaussette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZbrDeev","download_url":"https://codeload.github.com/ZbrDeev/webchaussette/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246875876,"owners_count":20848049,"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":["fast","rust","websocket"],"created_at":"2025-04-02T19:16:12.638Z","updated_at":"2025-04-02T19:16:13.331Z","avatar_url":"https://github.com/ZbrDeev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webchaussette\n##### Fast, powerful, and easy-to-set-up WebSocket library\n\n[![Version](https://img.shields.io/crates/v/Webchaussette.svg)](https://crates.io/crates/Webchaussette)\n[![Documentation](https://docs.rs/webchaussette/badge.svg)](https://docs.rs/webchaussette)\n[![License](https://img.shields.io/crates/l/webchaussette.svg)](https://opensource.org/licenses/MIT)\n\n## Installation\n\nTo use this library, simply add it to your `Cargo.toml` :\n\n```toml\n[dependencies]\nwebchaussette = \"1.0\"\nasync-trait = \"0.1\"\ntokio = \"1\"\n```\n\n## Example\n```rust\nuse webchaussette::server::{EventHandler, Public, Server, Types};\n\n// Implement the field if you wish\nstruct Test;\n\n#[async_trait::async_trait]\nimpl EventHandler for Test {\n    // Read incoming user data\n    async fn on_message(\u0026self, public: \u0026mut Public) {\n        match \u0026public.message {\n            Types::String(val) =\u003e println!(\"{}\", val),\n            Types::Binary(val) =\u003e println!(\"{:?}\", val),\n        }\n    }\n    async fn on_close(\u0026self) {\n        println!(\"The user has left\");\n    }\n}\n\n#[tokio::main]\nasync fn main() {\n    let mut server: Server = Server::new(\"0.0.0.0:8080\").await;\n    server.set_handler(Box::new(Test));\n    server.run().await;\n}\n```\n\n## Documentation\nDocumentation is being processed !\n\n## Contribution\nContributions are welcome! Feel free to open issues or send pull requests.\n\n## License\nThis project is licensed under MIT. See the [LICENSE](LICENSE) file for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbrdeev%2Fwebchaussette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbrdeev%2Fwebchaussette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbrdeev%2Fwebchaussette/lists"}