-
November 27th, 2017, 09:32 AM
#2
Hi rvkvino,
ConnectionSharing is the object of our client API that allow to specify if and how the connection is shared between different LightstreamerClient instances.
If you are using a versiont 7.0.x of Lightstreamer Web Client this is the correct syntax to leverage the engine sharing:
lsClient.enableSharing(new ConnectionSharing("my_sharing_name", "ATTACH", "CREATE"));
If you've built your library with the provided generator,please make sure you've included the ConnectionSharing class.
I confirm that the code should be the same in all your pages and the Lightstramer client will manage out of the box the sharing of a single connection to the server across all LightstreamerClient instances.
Please, take also a look at this demo that shows a quite similar scenario.
Regards,
Giuseppe
Similar Threads
-
By dimitarn in forum Client SDKs
Replies: 5
Last Post: December 10th, 2009, 10:52 AM
-
By cbrogliato in forum Client SDKs
Replies: 1
Last Post: October 2nd, 2009, 02:13 PM
-
By codingvn in forum Client SDKs
Replies: 5
Last Post: July 17th, 2008, 10:01 AM
-
By camerone in forum Client SDKs
Replies: 1
Last Post: August 20th, 2007, 02:37 PM
-
Replies: 1
Last Post: March 15th, 2007, 02:44 PM
Tags for this Thread
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 01:32 AM.
Bookmarks