Skip to content

Commit

Permalink
AAE-20808 Moving web socket to common lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-2019 committed Dec 2, 2024
1 parent 71526b5 commit 6b1306c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
* limitations under the License.
*/

import { AppConfigService, AuthenticationService } from '@alfresco/adf-core';
import { TestBed } from '@angular/core/testing';
import { Apollo, gql } from 'apollo-angular';
import { of, Subject } from 'rxjs';
import { WebSocketService } from './web-socket.service';
import { SubscriptionOptions } from '@apollo/client/core';
import { FeaturesServiceToken, IFeaturesService, provideMockFeatureFlags } from '@alfresco/adf-core/feature-flags';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { AuthenticationService } from '../../auth';
import { AppConfigService } from '../../app-config';
import { FeaturesServiceToken, IFeaturesService, provideMockFeatureFlags } from '@alfresco/adf-core/feature-flags';

describe('WebSocketService', () => {
let service: WebSocketService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import { createClient } from 'graphql-ws';
import { Inject, Injectable } from '@angular/core';
import { AuthenticationService } from '../auth';
import { AppConfigService } from '../app-config';
import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
import { WebSocketLink } from '@apollo/client/link/ws';
import {
Expand All @@ -41,6 +39,8 @@ import { RetryLink } from '@apollo/client/link/retry';
import { Observable } from 'rxjs';
import { switchMap, take, tap } from 'rxjs/operators';
import { FeaturesServiceToken, IFeaturesService } from '@alfresco/adf-core/feature-flags';
import { AuthenticationService } from '../../auth';
import { AppConfigService } from '../../app-config';

interface serviceOptions {
apolloClientName: string;
Expand Down
18 changes: 0 additions & 18 deletions lib/core/src/lib/services/index.ts

This file was deleted.

18 changes: 0 additions & 18 deletions lib/core/src/lib/services/public-api.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/core/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export * from './lib/mock/index';
export * from './lib/testing';

export * from './lib/auth';
export * from './lib/services';
export * from './lib/common';

export * from './lib/core.module';
Expand Down

0 comments on commit 6b1306c

Please sign in to comment.