Live Queries subscription updates in Parse-server

535 Views Asked by At

Is it possible to get subscription alerts for live queries on a single client instead of everyone. I am using the following code to get update alerts for the object 'obj' on class 'class-name'. But the alert message comes on every client( i.e every instance of running app).

let query_add = new Parse.Query("class-name");
let subscription = query_add.subscribe();

subscription.on('update', (obj) => {
   alert('object updated');
});

How can I modify this to notify only the single client.

0

There are 0 best solutions below