How to detect if a player quit the match/ got disconnected in lyra

Hi, Guys so I am using lyra sample project to make a game. I want to know how we can detect if a player has left the game so I can end the game for the other player and make him the winner