An extension that check if the internet connection (of the user) is up.
If you need a replacement, use datlechin Offline Indicator Extension.
composer require nearata/flarum-ext-is-online
composer update nearata/flarum-ext-is-online php flarum cache:clear
composer remove nearata/flarum-ext-is-online php flarum cache:clear
Can you share a screen, please?
Gatsu Basically, if you lost your internet connection this message appears
That's it.
Out of curiosity isn't this extension firing xhr requests every second to check the online status?
Wouldn't it be far more reliable and fast to hit the api if flarum instead? And check for just the response status code?
luceos Out of curiosity isn't this extension firing xhr requests every second to check the online status?
Yes it is
luceos Wouldn't it be far more reliable and fast to hit the api if flarum instead? And check for just the response status code?
I thought about that, but what if the site itself is offline?
Nearata If the site itself is offline, wouldn't the entire extension be rendered moot anyway?
katos The purpose of this extension is to tell the user if his internet connection goes down, not of the site he's on. So, i think that using an external source is more reliable.
Nearata looking at the code it runs 2 HTTPS requests and one DNS request through the is-online module every single second, with a timeout of 5 seconds.
is-online
This is way too much in my opinion. It's something like 2 KB of data each second...
WebSocket
@Nearata
Please update
Justman10000 there is also another extension for this functionality: https://discuss.flarum.org/d/30714-offline-indicator
GreXXL
Oh, yes... I already have the plugin in my collection 🤣