arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

Calling Meteor's method from electrify #38

Open rafaelcorreiapoli opened 8 years ago

rafaelcorreiapoli commented 8 years ago

Hello. I know I can methods defined on electrify from meteor, as described on the docs. But can I call methods from meteor on my electrify App? I need this because I'm using serialport and when my electron app receives data from the port, I need to communicate this to Meteor

arboleya commented 8 years ago

This cannot be done with the current implementation. As a workaround you can achieve this with some kind of pooling, even though it may give you some latency, it should work.

akolnati commented 8 years ago

I have tried with a DDP client ( ddpclient.call ) setup accessing meteor app running on localhost...works perfectly in dev mode but when i package the app...it doesn't work. App just stops communicating with meteor app...just hit a dead end or is there a way to accomplish the same using IPC ?

akolnati commented 8 years ago

I hav added my solution here... Give it a try. https://github.com/arboleya/electrify/issues/47