3 ms·
Is there an API for Electron yet that doesn't require you to pass messages to the nodejs backend? I did not find Electron+Typescript (Ionic+Angular/React) to be
by datavirtue 5y ago
Is there an API for Electron yet that doesn't require you to pass messages to the nodejs backend? I did not find Electron+Typescript (Ionic+Angular/React) to be very productive at all. On initially approaching it I expected to just be able to treat my local server (nodejs) like a remote one and keep my code the same for my desktop app and web app. No dice. Very disappointing.
I think Angular has a way to intercept http calls but you would need to build a translation layer. None of this is obvious to someone picking this up for the first time.
The whole paradigm is a hack that requires a very experienced dev to navigate.
Maybe I'm missing something.
- rco8786 5y agoYou're not wrong - Electron has 2 processes per "app" (1 chromium 1 nodejs) that need to communicate w/ each other and they do that via the traditional network stack/local sockets. That part won't change AFAICT, but you can imagine a reasonable abstraction over it as part of a "batteries included" ecosystem in which events from the UI (button press, keyboard capture, scroll event, etc) are mapped seemlessly via configuration to user-defined functions that happen to run within the nodejs process with an SDK that allows developers to interact back w/ the UI in a similar manner. Resulting in a developer experience very similar to what you got with VB6.