fix(react-native): send Deepgram CloseStream before closing Stop
Merged
DA
3mo ago+77+77+01234567890123456789-2-2-0123456789
Fixes #13621.
createDeepgramTranscriber().stop() closed the WebSocket without sending Deepgram's CloseStream frame. Remaining transcription results can be dropped. Send {"type":"CloseStream"} while the socket is open, then close. Related Go device SDK issue: #13023.
Validation
- Reproduced on
origin/maind5cbd548f6: injected socket recordedclose()and no text frame. - After the fix, Node 22 recorded
{"type":"CloseStream"}thenclose(). No live Deepgram, credentials, or audio.
AI-assisted contribution. Bounty eligibility remains a maintainer decision.
Made with Cursor