Hi, I am having an IMPOSSIBLE time trying to figure out how to connect my bevy app to a websocket server.
I was following the code from here: Listening For Websockets From Bevy Example?, but it seems like these libraries don't even work on wasm target... regular tungstenite will NOT work, right?
Huh??? What's the proper way to connect to to a websocket, that will work with wasm??
Browser-side WASM can only make network requests via the JavaScript API. As far as I know, the web-sys crate is the most common way to call JavaScript's WebSocket API from Rust. An example is given below:
I'm not familiar with Bevy, but a quick look at the main dependencies shows that web-sys is used, but not the WebSocket feature. I suspect you're out of luck.