tauri + websocket client cant run together
Im trying to make an application that connects to a websocket server, the websocket server controls part of the application such as connect, etc. the issue is i cant seem to get the tauri app running along side the websocket client code its either the websocket works or the tauri works not both together, my current approach is to init tauri and the websocket client in different functions run_tauri_app
and run_websocket_client
the use tokio::join
to run them together however this still doesn’t work, in this instance the websocket client runs but the tauri doesn’t work I’m guessing because tauri doesn’t like that the event loop is running outside the main thread.
how to save websocket connection in rust?
I made this websocket server here in Typescript and now I need to migrate it to Rust, but I’m not very good at this language