https://github.com/joehowarth/bevy-dynamic-subscription
json-ecs-sub
https://github.com/joehowarth/bevy-dynamic-subscription
Last synced: 11 months ago
JSON representation
json-ecs-sub
- Host: GitHub
- URL: https://github.com/joehowarth/bevy-dynamic-subscription
- Owner: JoeHowarth
- Created: 2023-02-16T17:55:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T18:05:28.000Z (over 3 years ago)
- Last Synced: 2025-06-15T14:38:23.006Z (12 months ago)
- Language: Rust
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bevy-dynamic-subscription
**This crate is working as a POC, but still needs additional polish -- PRs welcome!**
Allows clients to subscribe to dynamic queries using [bevy-ecs-dynamic](https://github.com/jakobhellermann/bevy_ecs_dynamic) which are run every frame.
The query results are serialized to json and sent to the client over WebSocket.
This allows for clients to determine which part of the data model should be synced at any given time.
By supporting `Changed` or `Added` filters, less data needs to be transfered to stay in-sync.
Enabling the client to determine what data is needs facilitates a faster development loop since changes on the backend are no longer required.