# October 17, 2022

## Real-Time API Enhanced Usability Update

Deepgram's real-time API has been updated for enhanced usability.

Streaming connections should now be closed by sending the JSON message `{ "type": "CloseStream" }` . Previously, streaming connections were closed by sending an empty byte.

Here’s an example of sending a CloseStream message in Javascript:

And an example in Python:

In the future, we will deprecate the ability to close the connection with an empty byte.  We recommend customers using our API move to using the CloseStream method to avoid potential disruptions. Any customers using our SDK will not need to make changes.

## Related pages

- [Amazon SageMaker](./amazon-sagemaker-index.md)
- [Aura](./aura-index.md)
- [Changelog](../changelog.md)
- [Custom Vocabulary](./custom-vocabulary-index.md)
- [Deepgram's Docs](../index.md)
- [Deployment](./deployment-index.md)
- [Docker/Podman](./docker-podman-index.md)
- [Features](./features-index.md)
- [Flux TTS](./flux-tts-index.md)
- [Formatting](./formatting-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
