Skip to content

Commit 2514269

Browse files
committed
Fixing real-time socket close bug
1 parent a6707ad commit 2514269

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
---
1111

12+
## [1.2.1]
13+
14+
### Fixed
15+
16+
- Fixed a bug that caused real-time transcriptions to not close correctly. This
17+
would result in the user not received the final transcription.
18+
1219
## [1.2.0]
1320

1421
### Updated
@@ -137,7 +144,9 @@ throw an error.
137144

138145
---
139146

140-
[unreleased]: https://github.com/deepgram/node-sdk/compare/1.1.0...HEAD
147+
[unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.1...HEAD
148+
[1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
149+
[1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
141150
[1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
142151
[1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
143152
[1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deepgram/sdk",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "An SDK for the Deepgram automated speech recognition platform",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/transcription/liveTranscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ export class LiveTranscription extends EventEmitter {
7171
* the websocket connection when transcription is finished
7272
*/
7373
public finish(): void {
74-
this._socket.close(1000);
74+
this._socket.send(new Uint8Array(0));
7575
}
7676
}

0 commit comments

Comments
 (0)