internetDetection
fun Context.internetDetection(serverUrl: String = "https://www.google.com/", timeOut: Int = 10 * 1000): Flow<Boolean>
Sends internet statuses as a simple flow of booleans true if user has an active internet connection false if user hasn't
Receiver
Context
Return
Flow
Parameters
serverUrl
String the url to ping for successfull internet connection
timeOut
Int timeout for the ping