Skip to content
Discussion options

You must be logged in to vote

Messaging sounds like a good word for it. The webviews offer a postMessage both "inside" the js runtime and outside in the host (rust) process. Don't ask me how exactly that webview api works under the hood :D

Additionally in v2 we use the browser's normal fetch method against a custom protocol in response to that message to transfer larger payloads faster (postMessage is slow af).
Custom protocol is also what's used to serve your frontend files. It's basically a mix of the file:// and http:// protocols you know from web browsers (there's no localhost server involved or something, requests to custom protocols are caught before hitting the network stack).

WebAssembly is only used when your…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tyrsday29
Comment options

Answer selected by tyrsday29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants