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.

          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 of is-online library

          Removed

          • is-online dependency
          a year later
          a year later