Results 1 to 3 of 3
  1. #1

    How many lightstreamer instances per chrome tab?

    We're building a frontend (angular) single page application of independently developed web components. The hope is the components will not communicate directly with one another but rather via their own LS instances if necessary. Can someone shed light on the feasibility and what complications to expect? There seems to be a limit on sockets connections per chrome browser/tab/page and an overall recommendation to keep only one socket per tab/page. Does this limit extend to LS?

    Thanks!
    Last edited by Megabyzus; January 3rd, 2022 at 01:50 AM.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,031
    I confirm that Lightstreamer provides no guarantee that all the requested websocket connections can be opened.
    The last word on this pertains to the user agent, which may obey the current recommendations.
    Lightstreamer Client Libraries, if unsuccessful in creating a websocket, will try to resort to http streaming and then to http long polling.
    However, if the requested connections were even more than the overall open sockets made available by the user agent, the only possible workaround would be the use of traditional "short" polling; but this case should be handled by the application.

    What we suggest is that the components share a single LightstreamerClient object.
    Their subscriptions and "sendMessage" would still be treated independently, with different listeners.
    So, this wouldn't mean sharing the state, which could still be handled by the Server.

    Lightstreamer Client Libraries provide a help, with their support for connection sharing.
    This allows each component to see only a local instance of LightstreamerClient, provided that a global instance of LightstreamerClient is maintained in the page.
    See the ConnectionSharing object. Note that the communication between the local and global LightstreamerClient requires some conditions, but, as long as all the instances belong to the same underlying page, there should be no problems.

  3. #3
    Thanks!
    Last edited by Megabyzus; January 5th, 2022 at 02:21 PM.

 

 

Similar Threads

  1. Replies: 1
    Last Post: January 8th, 2014, 09:41 AM
  2. SSL and multiple lightstreamer instances
    By GarrettMackey in forum General
    Replies: 2
    Last Post: October 20th, 2011, 02:11 PM
  3. Replies: 3
    Last Post: July 29th, 2009, 10:27 AM
  4. unable to find engine-chrome browser
    By georgeeapen in forum Client SDKs
    Replies: 1
    Last Post: May 25th, 2009, 10:21 AM
  5. CreateEngine - path - issues in chrome
    By rd2008 in forum Client SDKs
    Replies: 6
    Last Post: October 10th, 2008, 12:09 PM

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 03:50 PM.