how the fuck is there no cross-platform way to detect when the network is gone :neocat_googly_shocked:
in the browser there's `navigator.onLine` and `online`/`offline` events, but there's nothing even closely similar in other runtimes.
there isn't even a proper native api for that - in the browsers it's implemented via weird platform-specific hacks.
holy shit