@layercode/js-sdk 2.0.1 → 2.0.2

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.
@@ -3478,7 +3478,7 @@ function arrayBufferToBase64(arrayBuffer) {
3478
3478
 
3479
3479
  /* eslint-env browser */
3480
3480
  // SDK version - updated when publishing
3481
- const SDK_VERSION = '2.0.0';
3481
+ const SDK_VERSION = '2.0.2';
3482
3482
  /**
3483
3483
  * @class LayercodeClient
3484
3484
  * @classdesc Core client for Layercode audio agent that manages audio recording, WebSocket communication, and speech processing.
@@ -3507,7 +3507,7 @@ class LayercodeClient {
3507
3507
  onUserIsSpeakingChange: options.onUserIsSpeakingChange || (() => { }),
3508
3508
  };
3509
3509
  this.AMPLITUDE_MONITORING_SAMPLE_RATE = 10;
3510
- this._websocketUrl = 'wss://api.layercode.com/v1/agents/websocket';
3510
+ this._websocketUrl = 'wss://api.layercode.com/v1/agents/web/websocket';
3511
3511
  this.wavRecorder = new WavRecorder({ sampleRate: 8000 }); // TODO should be set my fetched agent config
3512
3512
  this.wavPlayer = new WavStreamPlayer({
3513
3513
  finishedPlayingCallback: this._clientResponseAudioReplayFinished.bind(this),