How to check internet connection?
Cocos
JULY 18, 2024
I read that if it returns any type other than NONE, then it is the Internet. I need the game to check every N amount of time if the player is online. I could use the fetch() function for this. However, I found the sys.getNetworkType() function. How does it check it herself? Is it possible to subscribe to an event during a status change?
Let's personalize your content