Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Madsrid
    Posts
    7

    Multiple LightstreamerClient

    Good morning,

    Is it possibl eto run multiple LightstreamerClient in the same html page connected each one to different adapters/metadataadpaters ?. Thanks very much in advanced.

    Sarbaó

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Sarbaó,

    Yes I confirm you that it is possible to instantiate as many LightstreamerClient as needed by your HTML page. Please note that if the Adapter Set is the same you can create two or more Subscriptions for different Data Adapters through the same LightstreamerClient istance.

    Ie, assuming that the configuration of the server-side includes two Adapter Sets, A and B; the first with two Data Adapters 1 and 2 and the second with only the Data Adapter 3. A client that wants to receive data from all 3 Data Adapters will be something like this:

  3. #3
    Member
    Join Date
    Mar 2009
    Location
    Madsrid
    Posts
    7
    Thanks very much Giuseppe. Does it mean that I can use two different MetaDataAdpaters one per each Adapter Set ?. Aslo, does it make sense that configuration or is better to merge both MetaDAtaAdapters to end with just one and multiple Data Adapters. I imagine this way I can use the same lightstreamer session for the application io opening two sessions one for each MetaData. Best regards and tks again for reply

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Sarbaó,

    An Adapter Set is made up of one Metadata Adapter and one or multiple Data Adapters. This means that every Data Adapter existing in the Set must share the same authentication, authorization, and entitlement logic implemented in the Metadata Adapter.
    One of the reasons why you might need to create different Adapter Sets is right the need to implement different logic in the Metadata Adapter.

 

 

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 02:45 PM.