Intercept the login/logout packets

Hi,

I would to intercept the packets which correspond to a login/logout user.

are they of Presence type??

How can I do that?

thanks

Hi brasco,

Are you wanting to intercept the packets or are you just wanting to know when users sign in/out? If it’‘s the a latter you could use a SessionEventListener if it’'s the former take a look at the XMPP spec for session establishment: http://www.ietf.org/rfc/rfc3921.txt

Hope that helps,

Ryan