Hello I make an application to add news. When adding news, you need to handle the absence of the Internet (the news is sent to the server when communication is restored). How is it reazed? I read that you can use Service Workers.

    1 answer 1

    There are such y window events that will help you track the break and reconnect:

     window.addEventListener('offline', e => alert('offline')) window.addEventListener('online', e => alert('online'))