How to connect to websocket server on wasm and local run?

Hi, I have a bevy project that I had been working on for a few weeks compiling and running locally on my macbook. Then when I try to build and deploy to itch.io I see all these errors that this library "tokio-tungstenite" doesn't work for wasm.... So then I try to replace the library with "tokio-tungstenite-wasm", but that doesn't seem to work either... any recommended websocket libraries for bevy?

so I think my problem has to do with the fact that I want to deploy to wasm, but I am just running a "native" build locally.

I think this command is the "correct" way for me to run locally, with the same wasm build that I want to deploy to itch.io

trunk serve --release --no-default-features

still haven't found any working websocket examples though.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.