-
July 8th, 2011, 04:45 PM
#1
How to connect multiple LS servers from a single LS web client?
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
-
July 11th, 2011, 01:34 PM
#2
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
-
July 18th, 2011, 02:19 PM
#3
Can you provide any sample code? Thanks
-
July 18th, 2011, 02:52 PM
#4
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
-
September 7th, 2012, 10:40 PM
#5
Does the latest version of LS web client support multiple connections to difference LS servers for different data resources?
-
September 10th, 2012, 09:37 AM
#6
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
-
September 10th, 2012, 04:05 PM
#7
Is it backward compatible with LS 4.0 server?
-
September 11th, 2012, 09:32 AM
#8
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.
-
November 16th, 2020, 06:58 AM
#9
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!
-
November 16th, 2020, 09:27 AM
#10
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
Similar Threads
-
By sjohn in forum Client SDKs
Replies: 11
Last Post: January 23rd, 2015, 11:22 AM
-
By pluczak in forum Adapter SDKs
Replies: 1
Last Post: April 26th, 2012, 10:50 AM
-
By wwatts in forum Client SDKs
Replies: 4
Last Post: February 16th, 2010, 08:58 AM
-
By sarbao in forum Adapter SDKs
Replies: 1
Last Post: April 20th, 2009, 09:29 AM
-
By Sinead in forum Client SDKs
Replies: 3
Last Post: February 8th, 2007, 09:11 AM
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 10:37 AM.
Bookmarks