This video explains how to get a boolean output (true/false) of whether or not your player/client is connected to the WiFi.
This could be used for a game where WiFi is required to be enabled, so by having this running in the background, if the WiFi is off, you could prompt the user to reconnect the wifi.
Chapters
0:00 - Intro
0:14 - Tutorial Begins
1:40 - Showing what it does