A selection of the networking, software, security, cloud, and training engagements we've delivered for clients.
| 1 | import { setTimeout as sleep } from "node:timers/promises"; |
| 2 | |
| 3 | const ENDPOINTS = [ |
| 4 | "https://api.nexoriqhub.com/health", |
| 5 | "https://app.nexoriqhub.com/health", |
| 6 | ]; |
| 7 | |
| 8 | async function checkEndpoint(url: string): Promise<boolean> { |
| 9 | const response = await fetch(url, { method: "GET" }); |
| 10 | return response.status === 200; |
| 11 | } |
| 12 | |
| 13 | async function waitForHealthy(url: string, retries = 5) { |
| 14 | for (let attempt = 1; attempt <= retries; attempt++) { |
| 15 | const healthy = await checkEndpoint(url); |
| 16 | if (healthy) { |