Allow a web or PWA app to accurately detect if it's online or offline. Includes block that triggers two events related to the app's connectivity, that can automatically detect the connection is down or up again, and simple client-side logic to validate connectivity status. You can start Sync local storage to the database when online by call TriggerOfflineDataSync inside Online action.
Completely based on Javascript and with no external dependencies.
Detail of existing triggered events:
Offline - The connection became offline.
Online- The connection became online.
I also have a Client Action named "GetNetworkStatus()" it will return true if you are online otherwise return false.