All posts

Holding Streams Open with Stream KeepAlive

Holding Streams Open with Stream KeepAlive

Want to keep a DG stream alive without sending any data? Now, it’s as easy as:

{ type: KeepAlive }

Our system closes connections if no audio data is sent for a couple seconds, which can make for a frustrating development experience. Whether you want to open a websocket a little bit before you need it, or intermittently stop sending data you don’t want transcribed, there are several reasons you might want to hang on to a websocket while not sending any data.

We’ve heard that this timeout doesn’t serve your needs, and that our customers are looking for a way to keep streams open for longer. Now, you can just send a KeepAlive message, and the stream will remain open for another 60 seconds.

Want to learn more? Head to our documentation.

Newsletter

Get Deepgram news and product updates

If you have any feedback about this post, or anything else around Deepgram, we'd love to hear from you. Please let us know in our GitHub discussions .

More with these tags:

Share your feedback

Thank you! Can you tell us what you liked about it? (Optional)

Thank you. What could we have done better? (Optional)

We may also want to contact you with updates or questions related to your feedback and our product. If don't mind, you can optionally leave your email address along with your comments.

Thank you!

We appreciate your response.