message: Do not call token provider for a socket token in ODC
diff: @@ -176,6 +176,7 @@ export class OdspDocumentService implements IDocumentService, IExperimentalDocum
  private readonly joinSessionKey: string;
  + private readonly isOdc: boolean;
  /**
  * @param appId - app id used for telemetry for network requests
  @@ -203,13 +204,13 @@ export class OdspDocumentService implements IDocumentService, IExperimentalDocum
  ) {
  this.joinSessionKey = `${this.odspResolvedUrl.hashedDocumentId}/joinsession`;
  -
  + this.isOdc = isOdcOrigin(new URL(this.odspResolvedUrl.endpoints.snapshotStorageUrl).origin);
  this.logger = DebugLogger.mixinDebugLogger(
  "fluid:telemetry:OdspDriver",
  logger,
  {
  docId: this.odspResolvedUrl.hashedDocumentId,
  - odc: isOdcOrigin(new URL(this.odspResolvedUrl.endpoints.snapshotStorageUrl).origin),
  + odc: this.isOdc,
  });
  this.getStorageToken = async (refresh: boolean, name?: string) => {
  @@ -302,13 +303,15 @@ export class OdspDocumentService implements IDocumentService, IExperimentalDocum
  /**
  * Connects to a delta stream endpoint for emitting ops.
  *
  - * @returns returns the document delta stream service for sharepoint driver.
  + * @returns returns the document delta stream service for onedrive/sharepoint driver.
  */
  public async connectToDeltaStream(client: IClient, mode: ConnectionMode): Promise<IDocumentDeltaConnection> {
  // Attempt to connect twice, in case we used expired token.
  return getWithRetryForTokenRefresh<IDocumentDeltaConnection>(async (refresh: boolean) => {
  + // For ODC, we just use the token from joinsession
  + const socketTokenPromise = this.isOdc ? Promise.resolve("") : this.getWebsocketToken(refresh);
  const [websocketEndpoint, webSocketToken, io] =
  - await Promise.all([this.joinSession(), this.getWebsocketToken(refresh), this.socketIOClientP]);
  + await Promise.all([this.joinSession(), socketTokenPromise, this.socketIOClientP]);
  // This check exists because of a typescript bug.
  // Issue: https://github.com/microsoft/TypeScript/issues/33752
  