Xide / bevy-websocket-adapter

Simple adapter to receive WebSocket messages in your bevy games as native Rust types.
4 stars 6 forks source link

Does this support wasm? #5

Open JimLynchCodes opened 3 weeks ago

JimLynchCodes commented 3 weeks ago

Hi, just curious- does this support wasm builds of bevy apps?

I thought tungstenite only worked on "native" compilation but not wasm for browsers.

just wondering.

thanks!

JimLynchCodes commented 3 weeks ago

Also, am I supposed to run cargo add bevy-websocket-adapter and then use it like in the file here?

https://github.com/Xide/bevy-websocket-adapter/blob/master/examples/bevy_ping_pong.rs

It doesn't say anything about usage in the readme...