Skip to content

Protocol API #940

Closed as not planned
Closed as not planned

Description

@Denny09310

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

Activity

  1. Denny09310 commented on Nov 18, 2025

    @Denny09310
    ContributorAuthor

    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

  2. FlorianRappl commented on Nov 18, 2025

    @FlorianRappl
    Collaborator

    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.

  3. added this to the 0.3.0 milestone on Nov 18, 2025
  4. Denny09310 commented on Nov 18, 2025

    @Denny09310
    ContributorAuthor

    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

  5. FlorianRappl commented on Nov 19, 2025

    @FlorianRappl
    Collaborator

    Should be unblocked: #941 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions