-
March 12th, 2007, 03:06 PM
#1
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.
-
March 12th, 2007, 07:38 PM
#2
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...
-
March 14th, 2007, 07:04 AM
#3
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
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: June 4th, 2010, 10:11 AM
-
By shayzweig in forum Client SDKs
Replies: 3
Last Post: April 6th, 2010, 08:46 AM
-
By ddhanis in forum Client SDKs
Replies: 1
Last Post: May 21st, 2009, 09:54 AM
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 04:00 AM.
Bookmarks