Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17

    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

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    Can you provide any sample code? Thanks

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  5. #5
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    Does the latest version of LS web client support multiple connections to difference LS servers for different data resources?

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  7. #7
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    Is it backward compatible with LS 4.0 server?

  8. #8
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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.

 

 

Similar Threads

  1. How to use multiple adapters in one web client
    By sjohn in forum Client APIs
    Replies: 11
    Last Post: January 23rd, 2015, 11:22 AM
  2. Single data provider and multiple data sources
    By pluczak in forum Adapter APIs
    Replies: 1
    Last Post: April 26th, 2012, 10:50 AM
  3. .NET Client Multiple Subscriptions
    By wwatts in forum Client APIs
    Replies: 4
    Last Post: February 16th, 2010, 08:58 AM
  4. Deploying Demos in different servers
    By sarbao in forum Adapter APIs
    Replies: 1
    Last Post: April 20th, 2009, 09:29 AM
  5. Replies: 3
    Last Post: February 8th, 2007, 09:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 01:41 AM.