-
January 21st, 2014, 05:11 AM
#1
Any Filtering Mehod for some specific user?
Hi there~ ![Smile](images/smilies/smile.png)
Im making an application using Java & javascript
Is there any way to filter some specific subscription?
here is my scenario.
User A sets to get subscriptions category AA and BB
User B sets to get subscriptions category AA and CC
in my java side, i select data from a table include AA, BB and CC
Both users A and B are seeing a same page
myClient = new LightstreamerClient("http://localhost:8999","HELLOWORLD");
User B doesn't want to get a category BB subscription.
Should I filter from the javascript side?
Last edited by byemen; January 21st, 2014 at 05:15 AM.
-
January 21st, 2014, 09:42 AM
#2
You simply have to publish AA BB and CC to different items and then let each client subscribe only to the items it is interestred in.
As an example you can see this demo http://demos.lightstreamer.com/StockListDemo/ subscribes to items 1 to 15, while this one http://demos.lightstreamer.com/jqGridDemo/ subscribes to item 1 to 10. Obviously any combination is possible
Does this answer your question?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:21 PM.
Bookmarks