Hey, I was wondering if someone would be willing to give me a hand getting tauri-invoke-http to work.
Intended use case: I am creating a desktop application using Tauri. However, I want my user (who has launched the desktop application) to be able to occasionally load the app on some other device on the local network and be able to invoke Rust from the local device browser to the running Tauri desktop application.
From what I understand, this can be achieved using the localhost plugin. However, the Tauri API is only available in Tauri windows and not on the browser of the local device. To be able to invoke Rust from a non-tauri window, this must be done over HTTP. Which, again, from what I understand, can be achieved using tauri-invoke-http.
I have been unable to invoke over HTTP successfully.
I have changed my main.rs according to the tauri-invoke-http readme.
I set withGlobalTauri in the conf to true.
I am invoking using window.__TAURI__invoke
But on the browser, I get the error: "TypeError: window.TAURI is undefined".
Can anyone help me get tauri-invoke-http up and running? Thanks