@firebase/data-connect 0.7.3 → 0.7.4

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.
@@ -418,7 +418,7 @@ function restUrlBuilder(projectConfig, transportOptions) {
418
418
  return `${baseUrl}/v1/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
419
419
  }
420
420
  function websocketUrlBuilder(projectConfig, transportOptions) {
421
- const { location } = projectConfig;
421
+ const { location, projectId, service } = projectConfig;
422
422
  const { host, sslEnabled, port } = transportOptions;
423
423
  const protocol = sslEnabled ? 'wss' : 'ws';
424
424
  const realHost = host || PROD_HOST;
@@ -430,7 +430,7 @@ function websocketUrlBuilder(projectConfig, transportOptions) {
430
430
  logError('Port type is of an invalid type');
431
431
  throw new DataConnectError(Code.INVALID_ARGUMENT, 'Incorrect type for port passed in!');
432
432
  }
433
- return `${baseUrl}/${WEBSOCKET_PATH}/Connect/locations/${location}`;
433
+ return `${baseUrl}/${WEBSOCKET_PATH}.Connect/${projectId}/locations/${location}/services/${service}`;
434
434
  }
435
435
  function addToken(url, apiKey) {
436
436
  if (!apiKey) {
@@ -953,7 +953,7 @@ class AbstractDataConnectStreamTransport extends AbstractDataConnectTransport {
953
953
  if (this.isFirstStreamMessage) {
954
954
  headers['X-Client-Version'] = `web/${SDK_VERSION}`;
955
955
  if (this._appCheckToken) {
956
- headers['X-Firebase-App-Check'] = this._appCheckToken;
956
+ headers['X-Firebase-AppCheck'] = this._appCheckToken;
957
957
  }
958
958
  preparedRequestBody.name = this._connectorResourcePath;
959
959
  }
@@ -1554,7 +1554,7 @@ class WebSocketTransport extends AbstractDataConnectStreamTransport {
1554
1554
  }
1555
1555
 
1556
1556
  const name = "@firebase/data-connect";
1557
- const version = "0.7.3";
1557
+ const version = "0.7.4";
1558
1558
 
1559
1559
  /**
1560
1560
  * @license