-
April 13th, 2022, 04:01 PM
#3
Yes, your response broadly addresses my question. But to be specific:
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.
So the parent module has done the following:
- It subscribes to ONE topic 'parentTopic'. here's pseudocode:
- const client = Lightstreamer.LightstreamerClient(lsServer, adapterSet)
- ....client.xxx0 = yyy, etc
- ....client.xxx1 = yyy, etc
- const item = 'json::: + 'parentTopic' + '::::${some string} + user + '\')
- const subscription = new Lighstreamer.Subscription('RAW', [item], '['Body']);
- .client.subscribe(subscription)
The child module needs to create/subscribe to ANOTHER topic say ('childTopic') which receives another set of data with a different structure.
I assume, the child module just needs the handle of the client the parent has created (see 'client' above) and nothing else. If so (or not so) What are the EXACT sequence of steps for the child module to subscribe to its 'childTopic'?
Thanks!
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 11:54 PM.
Bookmarks