PDA

View Full Version : How to connect multiple LS servers from a single LS web client?


LS_Developer
07-08-2011, 05:45 PM
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

Mone
07-11-2011, 02:34 PM
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

LS_Developer
07-18-2011, 03:19 PM
Can you provide any sample code? Thanks

Mone
07-18-2011, 03:52 PM
I mean something as simple as this:

<iframe src="http://push50.lightstreamer.com/demos/StockListDemo_Basic/"></iframe>
<iframe src="http://push51.lightstreamer.com/demos/StockListDemo_Basic/"></iframe>

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