Can you share a screen, please?
Is Online
- Edited
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?
- Edited
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 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.
This is way too much in my opinion. It's something like 2 KB of data each second...
Version 2.0.0 - 2020-08-11
Changed
- Using
WebSocket
instead ofis-online
library
Removed
is-online
dependency
Please update
Justman10000 there is also another extension for this functionality: https://discuss.flarum.org/d/30714-offline-indicator
Oh, yes... I already have the plugin in my collection