Callback in order to find out that the interlocutor has connected

Is there any call back in order to find out that the interlocutor has connected? Android