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

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

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 02:06 PM.