Detecting (on the server side) when a Flex client disconnects from BlazeDS destination

Posted by Alex Curtis on Stack Overflow See other posts from Stack Overflow or by Alex Curtis
Published on 2010-02-24T14:59:05Z Indexed on 2010/06/06 10:12 UTC
Read the original article Hit count: 445

Filed under:
|
|

Hi all,

I'd like to know whether it's possible to easily detect (on the server side) when Flex clients disconnect from a BlazeDS destination please? My scenario is simply that I'd like to try and use this to figure out how long each of my clients are connected for each session. I need to be able to differentiate between clients as well (ie so not just counting the number of currently connected clients which I see in ds-console).

Whilst I could program in a "I'm now logging out" process in my clients, I don't know whether this will fire if the client simply navigates away to another web page rather than going though said logout process.

Can anyone suggest if there's an easy way to do this type of monitoring on the server side please.

Many thanks, Alex

© Stack Overflow or respective owner

Related posts about flex

Related posts about monitoring