Results 1 to 2 of 2
  1. #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

  2. #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 10:10 AM.

 

 

Similar Threads

  1. FATAL EXCEPTION: Connection close activity
    By thomas.renger@gmail.com in forum Client SDKs
    Replies: 2
    Last Post: January 10th, 2011, 04:07 PM
  2. Browser close event
    By pmthiagu in forum Adapter SDKs
    Replies: 3
    Last Post: April 15th, 2010, 10:58 AM
  3. How to close Session in LS?
    By spganesh in forum Client SDKs
    Replies: 1
    Last Post: February 10th, 2010, 11:23 AM
  4. How to Close Connections Properly
    By lizsedley in forum Adapter SDKs
    Replies: 1
    Last Post: September 21st, 2009, 02:32 PM
  5. Suspend when close IE
    By skidrow406 in forum Client SDKs
    Replies: 4
    Last Post: March 11th, 2008, 06:32 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 05:13 AM.