Thread Roaming und Audio in HTML5 (5 answers)
Opened by rosti at 2025-02-27 19:52

GwenDragon
 2025-02-28 13:34
#196906 #196906
User since
2005-01-17
14829 Artikel
Admin1
[Homepage]
user image
Asyncrhon auf Verbindung testen.

Code: (dl )
1
2
3
4
5
6
7
8
const checkOnlineStatus = async () => {
try {
const online = await fetch("http://rolfrost.de/kx.html");
return online.status >= 200 && online.status < 300; // either true or false
} catch (err) {
return false; // definitely offline
}
};

View full thread Roaming und Audio in HTML5