I have done a game in Android for 2 players using sockets. When a player turns the screen I save sockes in a ViewModel, and restore then. But if the player turns the screen