(servers)
| 161 | } |
| 162 | |
| 163 | function syncHubProbeState(servers) { |
| 164 | const ids = new Set(servers.map(server => server.id)); |
| 165 | Array.from(hubStatus.keys()).forEach(id => { |
| 166 | if (ids.has(id)) return; |
| 167 | hubStatus.delete(id); |
| 168 | if (hubRetryTimers.has(id)) { |
| 169 | clearTimeout(hubRetryTimers.get(id)); |
| 170 | hubRetryTimers.delete(id); |
| 171 | } |
| 172 | }); |
| 173 | } |
| 174 | |
| 175 | function hubPingTone(latencyMs) { |
| 176 | if (!Number.isFinite(latencyMs)) return 'offline'; |
no outgoing calls
no test coverage detected