add getRooms method to chat