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
I’ve been experimenting with ElectronNET using a simple app, and I realized I needed to load an image from file system. While I could create a static class in C# to load the image directly as base64, I wanted to try implementing the Electron protocol API instead, for learning purposes. However, I’m not entirely sure if I’m structuring the bridge/API correctly. If anyone is willing to help me refine it, or at least explain the proper approach for future reference, I’d really appreciate it. The branch is feature/protocol-api
Mmh I think it's not possible to implement at the moment. Because if I wait on the "AppReadyCallback" electron will throw an error because I can't call the "RegisterSchemesAsPrivileged" after the app is ready, but if I try to do it before, the socket is not ready and will throw an error
Activity
Denny09310 commentedon Nov 18, 2025
Mmh I think it's not possible to implement at the moment. Because if I wait on the "AppReadyCallback" electron will throw an error because I can't call the "RegisterSchemesAsPrivileged" after the app is ready, but if I try to do it before, the socket is not ready and will throw an error
FlorianRappl commentedon Nov 18, 2025
Good point - maybe there should be a possibility to do that. Let's tackle that in a separate issue and keep this one open. I've added a blocked label.
Denny09310 commentedon Nov 18, 2025
Should I open another issue like "Better lifetime startup handling" or something similar?
Edit: Okay I think I've something, but I don't know how to correctly attach the js API to the socket
FlorianRappl commentedon Nov 19, 2025
Should be unblocked: #941 (comment)