Max number of players in Room

is there any method which runs like Update in unity to check if max player in room is one display other player left the room