One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
const users = [ | |
{ | |
id: 0, | |
status: "inactive", | |
username: "hobbit" | |
}, | |
{ | |
id: 1, | |
status: "active", | |
username: "hobbit 2" |
const isOnline = async ():Promise<boolean> => { | |
// Make a request to any host as long as it is a URL and not an IP in order to check DNS too | |
try { | |
await fetch("checkip.amazonaws.com"); | |
return true; | |
} catch (error) { | |
return false; | |
} | |
}; |