@hautechai/sdk 0.3.1 → 0.3.3

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.
package/dist/sdk/index.js CHANGED
@@ -28,7 +28,7 @@ export const createSDK = (options) => {
28
28
  };
29
29
  const optionsWithTokenRefresher = { ...options, authToken };
30
30
  const operationsListener = new OperationsListener({
31
- ws: options.useWebsocket
31
+ ws: (options.useWebsocket ?? true)
32
32
  ? {
33
33
  endpoint: getBaseUrl(options),
34
34
  token: authToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {