-
April 12th, 2022, 03:10 PM
#2
Hi,
If the modules are all part of the same page, they can share a pointer to the LightstreamerClient object and each one can use the same object to add its subscription requests, together with its listeners.
But there is no lookup method by which a module can see if there is already a LightstreamerClient object in the page. This should be implemented at application level.
On the other hand, the current Javascript SDK library provides a mechanism to share a single connection among multiple LightstreamerClient objects.
In this way, each module can create a local object, then issue enableSharing before connect(). The only common information needed between the modules is a "share name". Then Lightstreamer will try to serve all LightstreamerClient objects with the same share name with a single underlying connection. If the modules are all part of the same page, this is always possible.
The drawback of this feature is that it will not be kept in future upgrades of the SDK.
We hope that the above is in the direction of your requirements. If yes, we can expand. Otherwise, please clarify.
Similar Threads
-
By mhasan in forum Client SDKs
Replies: 27
Last Post: October 21st, 2020, 10:30 AM
-
By mhasan in forum General
Replies: 6
Last Post: July 11th, 2016, 09:27 AM
-
By stephenallred in forum General
Replies: 3
Last Post: August 16th, 2011, 10:39 AM
-
By atamel in forum General
Replies: 3
Last Post: August 9th, 2010, 02:09 PM
-
By kirthin in forum General
Replies: 1
Last Post: November 18th, 2009, 09:44 PM
Tags for this Thread
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 07:15 AM.
Bookmarks