-
April 2nd, 2014, 06:47 AM
#1
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ó
-
April 3rd, 2014, 08:13 AM
#2
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:
-
April 3rd, 2014, 11:06 AM
#3
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
-
April 3rd, 2014, 11:51 AM
#4
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.
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 09:01 AM.
Bookmarks