implemented in chat: connect, disconnect and availableusers functionality