Intercept the login/logout packets


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

are they of Presence type??

How can I do that?


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:

Hope that helps,