()
| 12 | let _initialized = false; |
| 13 | |
| 14 | async function ensureInitialized() { |
| 15 | if (_initialized) return; |
| 16 | const hello = await sendHelloToHub(); |
| 17 | if (!hello || !hello.ok) { |
| 18 | throw new Error('Failed to register with Hub: ' + (hello?.error || 'unknown')); |
| 19 | } |
| 20 | _initialized = true; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Place an ATP order for a service. |
no outgoing calls
no test coverage detected