The frameworks for offline are few to nonexistent, and of those that do exist they also seem very new and not battle tested in production. It’s a hard problem because there’s more states than online and offline. There’s also “a connection is detected, but I cannot connect to anything” state