-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-way deno bindings #12
Comments
how about deno and webview share v8 isolate. electron impleaments: |
Probably isn't possible as the isolate isn't shared with plugins (docs.rs). |
Could I ask what is the situation where web-sockets would not be sufficient? Since the web-view front-end (IMO) should be on a different thread then the deno back-end. |
Ideally we want to use the webview_bind function but due to threading issues blocking the deno thread (because the |
I solved it in release 0.5.3, it's far from perfect with a pretty bad js/ts interface but that can always be improved upon. There is an example in |
And with the release of 0.5.4 the js/ts interface is pretty good: for await (const event of webview.iter()) {
console.log(event)
} |
To call deno externals from the webview an invoke handler function will be needed. I tried to implement it in src/lib.rs:111 but to no avail. We will also need to implement a way of calling deno callbacks from rust. To do this we will most likely use a polling solution like signal or fs events.
Help from some rust wizard would be pretty nice :)
The text was updated successfully, but these errors were encountered: