electrify icon indicating copy to clipboard operation
electrify copied to clipboard

Calling Meteor's method from electrify

Open rafaelcorreiapoli opened this issue 9 years ago • 3 comments

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

rafaelcorreiapoli avatar Feb 06 '16 08:02 rafaelcorreiapoli

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.

arboleya avatar Feb 10 '16 04:02 arboleya

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 avatar Apr 14 '16 15:04 akolnati

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

akolnati avatar Apr 21 '16 10:04 akolnati