ParseLiveQuery-Android icon indicating copy to clipboard operation
ParseLiveQuery-Android copied to clipboard

Subscribe only for specific events?

Open Ghostw4lk opened this issue 7 years ago • 4 comments

Hey,

i have a question to subscribe only specific events [create, update...] with live query client.

For example, i only want get ParseObjects which are triggered by the CREATE-Event. If i update an object on the server, the UPDATE-Event will be triggered.

My question is, is it possible to subscribe only for e.g. CREATE-Events? Because all other events are not needed in my case and produce unnecessary traffic.

Thanks in adavance.

Ghostw4lk avatar May 20 '17 09:05 Ghostw4lk

This is not supported at the moment and would likely require a refactor on parse-server. Do you want to open an issue on parse-server requesting that improvement please?

flovilmart avatar May 21 '17 21:05 flovilmart

Thanks for the quick response. I will open this issue in the parse-server repository.

Ghostw4lk avatar May 22 '17 08:05 Ghostw4lk

On the client side, for now, you can only subscribe to a specific event and not get notified when it's other events. Events will still be received by the client (traffic) but not triggered.

mmimeault avatar May 24 '17 13:05 mmimeault

Yes, subscribe to specific events works well, but I think to avoid the traffic is necessary due to traffic costs.

Ghostw4lk avatar May 24 '17 18:05 Ghostw4lk