diff --git a/lib/process-services-cloud/src/lib/services/web-socket.service.ts b/lib/process-services-cloud/src/lib/services/web-socket.service.ts index a9f4133466..0b10f54925 100644 --- a/lib/process-services-cloud/src/lib/services/web-socket.service.ts +++ b/lib/process-services-cloud/src/lib/services/web-socket.service.ts @@ -17,7 +17,7 @@ import { createClient } from 'graphql-ws'; import { Inject, Injectable } from '@angular/core'; -import { AuthenticationService } from '@alfresco/adf-core'; +import { AppConfigService, AuthenticationService } from '@alfresco/adf-core'; import { GraphQLWsLink } from '@apollo/client/link/subscriptions'; import { WebSocketLink } from '@apollo/client/link/ws'; import { @@ -59,12 +59,11 @@ export class WebSocketService { constructor( private readonly apollo: Apollo, - // private readonly appConfigService: AppConfigService, + private readonly appConfigService: AppConfigService, private readonly authService: AuthenticationService, @Inject(FeaturesServiceToken) private featuresService: IFeaturesService ) { - this.host = 'https://aae-rc-apa.envalfresco.com'; - // this.host = this.appConfigService.get('bpmHost', ''); + this.host = this.appConfigService.get('bpmHost', ''); } public getSubscription(options: serviceOptions): Observable> {