You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,14 +226,14 @@ var myInstance = new watson.WhateverServiceV1({
226
226
227
227
The HTTP client can be configured to disable SSL verification. Note that this has serious security implications - only do this if you really mean to! ⚠️
228
228
229
-
To do this, set `disable_ssl` to `true` in the service constructor, like below:
229
+
To do this, set `disable_ssl_verification` to `true` in the service constructor, like below:
230
230
231
231
```
232
232
const discovery = new DiscoveryV1({
233
233
url: '<service_url>',
234
234
version: '<version-date>',
235
235
iam_apikey: '<iam_api_key>',
236
-
disable_ssl: true, // this will disable SSL verification for any request made with this object
236
+
disable_ssl_verification: true, // this will disable SSL verification for any request made with this object
Copy file name to clipboardExpand all lines: lib/recognize-stream.ts
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,7 @@ class RecognizeStream extends Duplex {
117
117
* @param {string} [options.base_model_version] - The version of the specified base model that is to be used with recognition request or, for the **Create a session** method, with the new session.
118
118
* Multiple versions of a base model can exist when a model is updated for internal improvements. The parameter is intended primarily for use with custom models that have been upgraded for a new base model.
119
119
* The default value depends on whether the parameter is used with or without a custom model. For more information, see [Base model version](https://console.bluemix.net/docs/services/speech-to-text/input.html#version).
120
+
* @param {Boolean} [options.rejectUnauthorized] - If true, disable SSL verification for the WebSocket connection
120
121
*
121
122
* @constructor
122
123
*/
@@ -133,8 +134,10 @@ class RecognizeStream extends Duplex {
133
134
this.listening=false;
134
135
this.initialized=false;
135
136
this.finished=false;
137
+
136
138
// is using iam, another authentication step is needed
0 commit comments