Is it possible for a LS web client to connect to multiple LS servers for different data resources? Is there any sample code I can reference to? Thanks
Is it possible for a LS web client to connect to multiple LS servers for different data resources? Is there any sample code I can reference to? Thanks
Hi,
currently it is not supported, but that's something that will be released with the next version of html client: I'm working on it.
As per now your only chance is to isolate two applications in two different iframes and connect each one to a different server
Can you provide any sample code? Thanks
I mean something as simple as this:
where you have two separate pages, each one connecting to a different server: in my case the first one connects to push50.lightstreamer.com while the second one connects to push51.lightstreamer.com (in this case it's actually the same server, but the browser doesn't know that)
HTH
Does the latest version of LS web client support multiple connections to difference LS servers for different data resources?
Sorry for not following up on this, anyway the answer is yes, you can now create as many LightstreamerClient instances as needed and connect them to different servers
Is it backward compatible with LS 4.0 server?
Newer Lightstreamer servers support older clients while older servers usually do not support newer clients; In this case you can't use the new JS client with the old server.
Anyway please note that upgrading from server 4 to server 5 is not a long process; Check the readme and the changelog compatibility notes for details.
Hi, how would this look like using this example - https://github.com/Lightstreamer/Lig...r/src/index.js, assuming we need the same client session to connect to two server hosts for the same subscription at the same time. Is it possible to have an example?
I was reading the documentation, but couldn't find a clear solution. Thanks in advance!
Each Lightstreamer client session is reserved for a "host/Adapter Set" pair.
So if you need to connect your client application to two different hosts you need also two different client sessions, ie. instantiate two LightstreamerClient objects and connect them to the different hosts.
Regards,
Giuseppe