Results 1 to 2 of 2
  1. #1

    Question Any Filtering Mehod for some specific user?

    Hi there~
    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 06:15 AM.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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?

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:25 AM.