#communicate from browser window to tauri

7 messages · Page 1 of 1 (latest)

midnight crescent
#

how would you do this? im planning to just host a simple http server and then make browsers do requests to it but is there a more idiomatic way?

maiden vessel
#

not really. you can't get much more idiomatic than http servers in browsers

midnight crescent
#

Well those custom protocols but i guess they are not done yet

maiden vessel
#

i wouldn't call them idiomatic, at least if you wanna do multiple requests, and or two-way communication

#

and iirc each time you invoke them the user has to click on a dialog to accept it

#

and probably less performant since the way they work is that they always start a new instance of your app which in turn forwards the input to the main instance.

#

and you're a bit more limited on the payload type and size