Packer icon indicating copy to clipboard operation
Packer copied to clipboard

Setup local WebSocket server to send status changes to the WebView

Open grilme99 opened this issue 3 years ago • 1 comments

The underlying WebView library, Wry, doesn't allow Rust to send messages to JS directly. Currently, my solution is to poll for status changes via the custom protocol. It'd be nice to stop doing this and set up a proper WS channel for message passing.

grilme99 avatar Dec 04 '22 13:12 grilme99

It's worth noting that IPC communication is done in the crate that uses wry as it's underlying library - tauri. I haven't looked at the code so I'm not sure if it will be helpful to switch to it or if you rely on functionality of wry that tauri doesn't support.

sasial-dev avatar Dec 12 '22 00:12 sasial-dev