hume 0.8.9 → 0.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,6 +117,9 @@ class ReconnectingWebSocket {
117
117
  this._handleClose = (event) => {
118
118
  this._debug("close event");
119
119
  this._clearTimeouts();
120
+ if (event.code === 1000) {
121
+ this._shouldReconnect = false;
122
+ }
120
123
  if (this._shouldReconnect) {
121
124
  this._connect();
122
125
  }
@@ -117,6 +117,9 @@ class ReconnectingWebSocket {
117
117
  this._handleClose = (event) => {
118
118
  this._debug("close event");
119
119
  this._clearTimeouts();
120
+ if (event.code === 1000) {
121
+ this._shouldReconnect = false;
122
+ }
120
123
  if (this._shouldReconnect) {
121
124
  this._connect();
122
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",