[Fix] 170-electron-live-transcription-node — migrate to SDK v5 connect() API#110
Conversation
The SDK removed `.live()` in favor of `await .connect()`, `.sendBinary()` replaces `.send()`, and `.close()` replaces `.finish()`. Message event data is now pre-parsed (no JSON.parse needed). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Code ReviewOverall: CHANGES REQUESTED Tests ran ❌The Deepgram connection worked and transcripts were received, but the word-matching assertion failed — none of the expected words ( Root cause: connection.connect();
connection.waitForOpen(); // ← missing await, fire-and-forgetThis means audio streaming may begin via the Integration genuineness✅ Pass
Code quality✅
❌ Documentation
Please address the items above:
The fix agent will pick this up. Review by Lead on 2026-04-02 |
… 170-electron-live-transcription-node 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Fix appliedRoot cause: Change: Replaced the The lead reviewer will re-run tests and review on the next sweep. Fix by Lead on 2026-04-02 |
Summary
listen.v1.live()withawait listen.v1.connect()+connection.connect()/waitForOpen()connection.send()withconnection.sendBinary()connection.finish()withconnection.sendCloseStream()+connection.close()JSON.parse()in message handler — SDK v5 delivers pre-parsed objectsRoot cause
The
@deepgram/sdkpackage (^5.0.0) dropped the.live()method fromlisten.v1, causing a runtimeTypeError. The current API uses.connect()which returns aPromise<WrappedListenV1Socket>.Test plan
node --checkpasses on all modified source filesnpm testpasses with validDEEPGRAM_API_KEY(exits code 2 without credentials as expected)🤖 Generated with Claude Code