You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.
Hi does this have duplex Communication between c# layer and JavaScript layer?
from what I’ve seen its more of a one way Restful client / server setup from JavaScript at the moment....
how do i also communicate with JavaScript layer from c# layer....
I’m really just looking to shoot messages both ways asynchronously
Im Using CefSharp version but if CefGlue is easyier please let me know....
Regards
The text was updated successfully, but these errors were encountered:
Duplex communication is not supported out of the box at the moment. You may have to extend Chromely to achieve that.
For CefSharp, to call JavaScript from C# you can extend CefSharpBrowserHost.cs. You need the browser object.
You can use sockets. There is an explanation here and here.
For CefGlue, what I have tried locally is implement CefGlue Http/WebSockets Server - Cef CefServer. At the moment, I don't have the bandwidth to complete it and fully support it. May be in near future. But you can look into that too.
Hi sorry I only just noticed this, but thanks. I wrote my own extension module on top the CefSharp version that im using. Its like your restful controllers but I can register input and output methods from .Net with corresponding JavaScript code function call in a singleton channel class and can either be one-way single message or return a value both ways between .Net and JavaScript. Thanks a lot for your help.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi does this have duplex Communication between c# layer and JavaScript layer?
from what I’ve seen its more of a one way Restful client / server setup from JavaScript at the moment....
how do i also communicate with JavaScript layer from c# layer....
I’m really just looking to shoot messages both ways asynchronously
Im Using CefSharp version but if CefGlue is easyier please let me know....
Regards
The text was updated successfully, but these errors were encountered: