()
| 366 | } |
| 367 | |
| 368 | function sendTestTone() { |
| 369 | if (!dc || dc.readyState !== 'open') { |
| 370 | console.warn('Data channel not open'); |
| 371 | return; |
| 372 | } |
| 373 | console.log('[test-tone] Requesting server test tone...'); |
| 374 | dc.send(JSON.stringify({ type: 'test_tone' })); |
| 375 | addTranscript('assistant', '(Test tone requested — you should hear a 440 Hz beep)'); |
| 376 | } |
| 377 | |
| 378 | function disconnect() { |
| 379 | stopDiagnostics(); |
nothing calls this directly
no test coverage detected