title: How can I handle net::ERR_INTERNET_DISCONNECTED error in Net Core
body: <p>I'm playing a stream live radio mp3 media, but when the internet connection is disconnected, stream playing stops and never plays again even the internet connection is back.</p>
  <p>I want to handle the connection and when the connection is disconnected, I need to show an alert with a message like 'your connection is disconnected, check and refresh the page' to the user.</p>
  <p>How can I handle this with Javascript or C#?</p>
  <p><a href="https://i.stack.imgur.com/fB93g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fB93g.png" alt="enter image description here" /></a></p>