Crates.io | bevy_eventwork_mod_websockets |
lib.rs | bevy_eventwork_mod_websockets |
version | 0.2.0 |
source | src |
created_at | 2024-02-20 02:32:38.202198 |
updated_at | 2024-07-24 05:21:28.11436 |
description | A Websocket NetworkProvider for Bevy_eventwork |
homepage | |
repository | https://github.com/NoahShomette/bevy_eventwork_mod_websockets |
max_upload_size | |
id | 1145913 |
size | 164,550 |
bevy_eventwork_mod_websockets
(BEMW)A crate that provides a websocket networking transport layer for Bevy_eventwork that supports WASM and Native.
See Bevy_eventwork for details on how to use bevy_eventwork
.
The only difference from bevy_eventworks getting started directions is to use this crates WebSocketProvider
and NetworkSettings
.
Other than that the crate functions identically to stock bevy_eventworks. No features, changes, or manual shenanigans are needed to compile for WASM.
It just works.
app.add_plugins(bevy_eventwork::EventworkPlugin::<
WebSocketProvider,
bevy::tasks::TaskPool,
>::default());
app.insert_resource(NetworkSettings::default());
EventWork Version | BEMW Version | Bevy Version |
---|---|---|
0.9 | 0.2 | 0.14 |
0.8 | 0.1 | 0.13 |