I'm playing a PC version of Bedrock with a friend, the server is a friend's PC. Every time he minimizes the game window, I get disconnected from his server with a message that the connection was lost.
As a solution, I can suggest: add the switch "pause the game if the application is minimized" in the settings.
Related issues
duplicates
Comments

Thank you for your report!
We're tracking this issue in MCPE-19393, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 BDS Wiki – 📖 FAQs