@stream-io/video-client 0.0.1-alpha.80 → 0.0.1-alpha.81

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.
@@ -8263,15 +8263,14 @@ class StreamClient {
8263
8263
  this.resolveConnectionId = resolve;
8264
8264
  this.rejectConnectionId = reject;
8265
8265
  });
8266
- this.axiosInstance = axios.create(this.options);
8267
- // todo: replace 'https://chat.stream-io-api.com' with an actual video server URL
8268
- this.setBaseURL(this.options.baseURL || 'https://chat.stream-io-api.com');
8266
+ this.setBaseURL(this.options.baseURL || 'https://video.stream-io-api.com/video');
8269
8267
  if (typeof process !== 'undefined' && process.env.STREAM_LOCAL_TEST_RUN) {
8270
- this.setBaseURL('http://localhost:3030');
8268
+ this.setBaseURL('http://localhost:3030/video');
8271
8269
  }
8272
8270
  if (typeof process !== 'undefined' && process.env.STREAM_LOCAL_TEST_HOST) {
8273
- this.setBaseURL('http://' + process.env.STREAM_LOCAL_TEST_HOST);
8271
+ this.setBaseURL(`http://${process.env.STREAM_LOCAL_TEST_HOST}/video`);
8274
8272
  }
8273
+ this.axiosInstance = axios.create(Object.assign({ baseURL: this.baseURL }, this.options));
8275
8274
  // WS connection is initialized when setUser is called
8276
8275
  this.wsConnection = null;
8277
8276
  this.wsPromise = null;
@@ -8496,7 +8495,7 @@ class StreamClient {
8496
8495
  }
8497
8496
  getUserAgent() {
8498
8497
  return (this.userAgent ||
8499
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.79"}`);
8498
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.80"}`);
8500
8499
  }
8501
8500
  setUserAgent(userAgent) {
8502
8501
  this.userAgent = userAgent;
@@ -8677,7 +8676,7 @@ class StreamVideoClient {
8677
8676
  return this.streamClient.get(`/calltypes`);
8678
8677
  });
8679
8678
  this.callConfig = callConfig;
8680
- this.streamClient = new StreamClient(apiKey, Object.assign({ baseURL: 'https://video-edge-frankfurt-ce1.stream-io-api.com/video',
8679
+ this.streamClient = new StreamClient(apiKey, Object.assign({
8681
8680
  // FIXME: OL: fix SSR.
8682
8681
  browser: true, persistUserOnConnectionFailure: true }, opts));
8683
8682
  this.writeableStateStore = new StreamVideoWriteableStateStore();