I am creating a small PWA where the user can enter a text box, and if for some reason they lose their Internet connection, they can continue to enter text, leave the page, and then after the connection is restored, their last typing will be synchronized.
I am not sure how I can check this on my devbox. I use node js server and work with Chrome and Win10.
If I go offline using Chrome switching on the network tab, requests will be rejected immediately and not queued (I checked that this was not just a problem using examples of synchronizing the background from the Chrome developers page), Windows 10 will also not allow itโs very easy for me to disconnect from a wired connection, and even if I did, the server is still running on localhost, so could I make requests correctly?
Is it best to deploy it somewhere like GitHub pages and then remove my Ethernet cable? I donโt know a bit how I can verify this.
source
share