Results 1 to 3 of 3

Thread: unsubscribe

  1. #1
    Member
    Join Date
    Mar 2007
    Location
    London
    Posts
    12

    unsubscribe

    Hello

    I have a web client talking to a DataProvider. On connecting subscribe is invoked and data is received. On leaving the web page I assumed unscribe would be eventually called, but this doesn't seem to happen. My concern is the LS server is still sending updates to the client.

    -Is this the case if unsubscribe isn't invoked by the LS Kernal?

    -When is unsubscribe called?

    Table type used: DynaMetapushTable.

    regards
    James.

  2. #2
    Member
    Join Date
    Sep 2006
    Location
    Oakland
    Posts
    13
    You don't get an unsubscribe until all clients subscribing to that item have disconnected, similarly you only get one subscribe per item no matter how many clients subscribe to the item.

    If you only have one client then I guess you should have received an unsubscribe - this is what I observer. Of course it might take a little while for the server to determine the client session has gone away vs. temporarily disconnected. I know if I've seen any description of that part of the protocol (session expiration).

    I expect you'll see a response from the Lightstreamer guys here soon...

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Waddy's answer is right. When the last client subscribed to a given item disconnects, the unsubscribe is called on the Data Adapter after session_timeout_millis milliseconds (configured in lightstreamer_conf.xml).

 

 

Similar Threads

  1. unsubscribe
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: June 4th, 2010, 11:11 AM
  2. IE - unexpected unsubscribe
    By shayzweig in forum Client SDKs
    Replies: 3
    Last Post: April 6th, 2010, 09:46 AM
  3. unsubscribe by itself intermittenly
    By ddhanis in forum Client SDKs
    Replies: 1
    Last Post: May 21st, 2009, 10:54 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 11:35 AM.