Live ASR connection never opens on Node.js versions below 22
What is the current behavior?
Live ASR using the Deepgram JS SDK does not work with Node.js versions below 22. The connection hangs after "Connection created" and never reaches "Connection opened". As a result, LiveTranscriptionEvents.Open is never received and transcription never starts.
This is unexpected since the package.json mentions Node 18+ support.
Steps to reproduce
-
Install the latest @deepgram/sdk in a Node.js project
-
Use the Live ASR example (e.g. with a microphone or audio stream) Live-Streaming-Audio[https://developers.deepgram.com/docs/live-streaming-audio]
-
Run the project on Node.js versions 19, 20, or 21
-
Observe that the connection is created but never opened
-
Switch to Node.js 22 or 23 — the same code works as expected
Expected behavior
The connection should successfully open and emit the LiveTranscriptionEvents.Open event so that transcription can begin, regardless of Node.js version (at least from Node 18 upwards as documented).
Please tell us about your environment
- Operating System/Version: Ubuntu 22.04 (EC2 instance)
- Language: JavaScript (Node.js)
- Browser: N/A (running on server-side)
Other information
Node.js versions tested: Node 22, 23: Working Node 19, 20, 21: Not working
Did you manage to spot any errors in a node or browser console?
It should support at least Node 20
No errors, we never get the open event and after sometime the app stops (from the example).