{"id":15282701,"url":"https://github.com/xide/bevy-websocket-adapter","last_synced_at":"2025-04-12T23:07:48.620Z","repository":{"id":57507492,"uuid":"414418673","full_name":"Xide/bevy-websocket-adapter","owner":"Xide","description":"Simple adapter to receive WebSocket messages in your bevy games as native Rust types.","archived":false,"fork":false,"pushed_at":"2021-10-10T22:17:11.000Z","size":36,"stargazers_count":4,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:06:51.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Xide.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}},"created_at":"2021-10-07T00:58:21.000Z","updated_at":"2024-10-23T17:00:30.000Z","dependencies_parsed_at":"2022-09-19T05:30:58.024Z","dependency_job_id":null,"html_url":"https://github.com/Xide/bevy-websocket-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fbevy-websocket-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fbevy-websocket-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fbevy-websocket-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fbevy-websocket-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xide","download_url":"https://codeload.github.com/Xide/bevy-websocket-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643004,"owners_count":21138355,"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":[],"created_at":"2024-09-30T14:36:22.702Z","updated_at":"2025-04-12T23:07:48.595Z","avatar_url":"https://github.com/Xide.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy websocket adapter\n\n\u003e Simple adapter to receive WebSocket messages in your [bevy](https://bevyengine.org/) games as native Rust types.\n\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://crates.io/crates/bevy_websocket_adapter\"\u003e\n        \u003cimg src=\"https://img.shields.io/crates/v/bevy_websocket_adapter?logo=rust\" alt=\"crates.io\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://docs.rs/bevy_websocket_adapter\"\u003e\n        \u003cimg src=\"https://docs.rs/bevy_websocket_adapter/badge.svg\" alt=\"docs.rs\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/crates/l/bevy_websocket_adapter\" alt=\"license\" /\u003e\n\u003c/p\u003e\n\n\n\u003chr\u003e\n\n:construction: | This is a work in progress, many major features are not implemented\n:---: | :---\n\nIt uses `tokio` as the async backend and `tungstenite` for websocket protocol implementation.\n\nYou can check the [`examples`](./examples) directory for more details on the usage of this crate.\n\n\u003chr\u003e\n\n### Table of content\n\n- [Bevy websocket adapter](#bevy-websocket-adapter)\n    - [Table of content](#table-of-content)\n      - [Message format](#message-format)\n      - [Roadmap](#roadmap)\n\n\n#### Message format\n\nAll websocket messages must be JSON object in this format:\n\n```json\n{\n    \"t\": \"MyMessageType\",\n    \"d\": \"...\"\n}\n```\n\n:warning: | The `t` field MUST be unique across all your messages types, one value of `t` will always map to the same native rust type.\n:---: | :---\n\nThe contents of `d` can be any valid JSON value. Your native rust type must be able to serialize/deserialize the contents of `d` using the `serde_json` crate.\n\n\n#### Roadmap\n\n\n\n- [x] Receive message from clients\n- [x] Deserialize messages to native Rust types\n- [x] Connect / Disconnect EventReader\n- [x] Send messages to clients\n- [x] Broadcast message\n- [ ] Client\n- [ ] Raw message EventReader in Bevy\n- [ ] Unmatched messages EventReader\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxide%2Fbevy-websocket-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxide%2Fbevy-websocket-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxide%2Fbevy-websocket-adapter/lists"}