I’m interrested about talking around the differents ways to notify client about something from server.
Ideally, I would be interrested about calling a client method from the server by passing the userId. I looked around this old package : anti:methods but it doesn’t work now.
Is passing by a mongoCollection is still the only one solution ?
Often I’m using callbacks method successfully, but here is my problematic :
I have a http server writed in java on a server A.
My Meteor project is on another server B.
When I upload a file from my client to meteor, it uploads successfully on the server B. Then, it called the java’s http server to get this file from it. Now the java accomplished the download an notify meteor server it’s ok (or it failed). Then now, I would like to notify client the download is ok on the java server (or it failed too :p).
But the time between upload file and getting confirmation can be long… I just can’t loop, or whatever, to wait a callback.
What will be the best way to do that ?
Sorry if my explications aren’t well explained.
Thanks for your advices.