presidium 0.15.28 → 0.15.29

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.
@@ -177,6 +177,10 @@ TranscribeStream.prototype.sendAudioChunk = function (chunk) {
177
177
  this.websocket.send(bytes)
178
178
  }
179
179
 
180
+ TranscribeStream.prototype.close = function () {
181
+ this.websocket.close()
182
+ }
183
+
180
184
  /**
181
185
  * @name marshalHeaders
182
186
  *
@@ -53,7 +53,7 @@ const test = new Test('TranscribeStream', async function () {
53
53
  wav.fromMuLaw()
54
54
  testTranscribeStream.sendAudioChunk(Buffer.from(wav.data.samples))
55
55
  } else if (event.event == 'stop') {
56
- testTranscribeStream.websocket.close()
56
+ testTranscribeStream.close()
57
57
  }
58
58
  })
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium",
3
- "version": "0.15.28",
3
+ "version": "0.15.29",
4
4
  "description": "A library for creating web services",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",