-
January 23rd, 2014, 07:41 AM
#1
Closing connection when browser windows is closed
Hi,
I have a flex web application using lighstreamer.
I wanted to know what happens to the connection which we open to connect to lightstreamer server when the browser tab running the flex client is closed. Who is responisble for closing it? And if I leave connection open the will lightstreamer server will do a cleanup automatically?
Thanks
Nishant Kumar
-
January 23rd, 2014, 09:18 AM
#2
Hi,
In a perfect world the browser should close the connection when you close the tab.
Unfortunately I can recall there were cases when the connection was left pending, that's why we introduced a hook in our demos to manually close the connection upon page unloading.
see
https://github.com/Weswit/Lightstrea...Demo.mxml#L168
and
https://github.com/Weswit/Lightstrea...ndex.html#L111
Anyway if the connection remains open the server will detect the issue after a while and eventually close the connection.
Tags for this Thread
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 01:07 AM.
Bookmarks