-
Notifications
You must be signed in to change notification settings - Fork 52
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
Communicate between Electron and meteor App #9
Comments
Using node_integration:true, ipc works |
Thats a good issue. It's on my (unshared) roadmap. Just to keep it clear: Meteor's server runs independently from Electron. There's no open channel of comunication between Meteor and Electron. At this point, I thought about a fast solution which consistis of adding kinda of a socket channel between meteor's server and electron code. It'll require some boilerplate for every call, like an api, but you can do this today. Anyway, something like IPC will be ideal for this case, but I'm not sure how to proceed about linking the two processes altogether. However the meteor's server runs in a Ideally, there will be a transparent bridge where you could access electron like a scope: Meteor.startup(function(){
Electrify.<the-whole-electron-api-here>.method([whatever], ...)
}); Makes sense? What do you think? |
Hi, I would like my client app to browse the client's local file system and access its file's content. I am a beginner with Meteor and Electron so I can be wrong, but I believe that this can only be possible if there is a way for the Meteor process to call the fs API via the Electron process. Am I correct? A socket between the 2 processes is still the recommended way? |
@green-coder Yes, the socket is the way to go, and it'll be available in the upcoming Stay tuned. |
@green-coder Another point, not sure what you're doing but you should be able to use NodeJS |
I am trying to write a software similar to SVN, client and server, using Meteor. My problem is on the client side (e.g. similar to Tortoise SVN) where I want to do operations like check-in / check-out / lock / unlock / watch files, as Meteor was not designed with this kind of usage for the client side. I am counting on Electron to help me having a client which allow me native access to the file (like what Atom does with my files) but for the moment I am trapped inside Meteor's client environment ... so close to Electron's NodeJS but at the same time so far. |
Not sure if Meteor is your best bet then, perhaps you can move along with pure Electron + js/css/etc? In the upcoming Electrify version, however, you'll be able to invoke Electron methods from Meteor, both client and server. Even though, the back-and-forth information overhead could be an obstacle, since you'll still have to code both ends -- pretty much the same way you use |
From my point of view, Meteor is the best suited to my small time budget, it provides so much advantages for client-server synchronizations, and I would not be able to do this program without as I am still a beginner with web technologies. |
Fine, expanding my explanation then, some infos that could help you.
Finally, just one more time, perhaps an even more straightforward way is for you to simply define methods on your Meteor's server code, and call them from the client code. Remember that the server code does have access to filesystem, as I said before, using Hope this can give you a clear idea of how you can accomplish what you're looking for. |
😃 that sounds really great. For the 3., it would be nice to avoid binding the socket to a port, to make sure that only the 2 processes (Electron process + its child Meteor process) are using it. I will start to write the server code and the client, and will count on your release for the last steps. Thank you a lot for your project. |
Implemented in |
Hello, how can I communicate between electron and meteor app?
I'm trying to use ipc but I can't make it work =(
Could you please help me ?
The text was updated successfully, but these errors were encountered: