Packer
Packer copied to clipboard
Setup local WebSocket server to send status changes to the WebView
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.
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.