'Data Loss In PWA to Server Frequent Requests

In PWA, empty packets occur from time to time when data packets are sent to the server. I am using xhr request javascript. How are you doing this? How can I do millisecond data flow without data loss?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source