-
March 9th, 2017, 06:49 AM
#1
Close Connection Best Practices
Hi,
I'm wondering whether we must unsubscribe from all subscribed tables before closing the connection or it is optional
-
March 10th, 2017, 09:08 AM
#2
Hi,
Assuming you don’t reuse the same instance of the LightstreamerClient, you can disconnect without unsubscribing. On the server side all the subscriptions will be dismissed after a few seconds (this delay is configurable by setting the parameter subscription_timeout_millis in your lightstreamer_conf.xml).
In general it is better to avoid the extra network traffic which will be generated by the unsubscriptions.
Last edited by Alessandro Carioni; March 10th, 2017 at 09:10 AM.
Similar Threads
-
By thomas.renger@gmail.com in forum Client SDKs
Replies: 2
Last Post: January 10th, 2011, 03:07 PM
-
By pmthiagu in forum Adapter SDKs
Replies: 3
Last Post: April 15th, 2010, 09:58 AM
-
By spganesh in forum Client SDKs
Replies: 1
Last Post: February 10th, 2010, 10:23 AM
-
By lizsedley in forum Adapter SDKs
Replies: 1
Last Post: September 21st, 2009, 01:32 PM
-
By skidrow406 in forum Client SDKs
Replies: 4
Last Post: March 11th, 2008, 05:32 PM
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 06:18 AM.
Bookmarks