Hi Veer Suthar,
Please refer to this example
MessengerDemo, or even this one,
RoomBallDemo, where a list of logged in users is kept real-time updated by the server and shared with all participants.
I confirm that the disconnection can be detected by the Lightstreamer server both in case of explicit exit by client application that if connection closed (within the timeout).
Regards,
Giuseppe