jamesclinton
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.
Waddy
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...
Alessandro Alinone
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).