Skip to content

Commit

Permalink
Added log to identify the host issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-2019 committed Dec 5, 2024
1 parent d9f0cb8 commit 61783f1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class WebSocketService {
@Optional() @Inject(FeaturesServiceToken) private featuresService: IFeaturesService
) {
this.host = this.appConfigService.get('bpmHost', '');
console.error('WebSocketService host initialized:', this.host);
}

public getSubscription<T>(options: serviceOptions): Observable<FetchResult<T>> {
Expand Down Expand Up @@ -170,7 +171,12 @@ export class WebSocketService {
...(this.subscriptionProtocol === 'transport-ws' && { 'X-Authorization': `Bearer ${this.authService.getToken()}` })
},
link: from([authLink, retryLink, errorLink, link]),
cache: new InMemoryCache({ merge: true } as InMemoryCacheConfig)
cache: new InMemoryCache({ merge: true } as InMemoryCacheConfig),
defaultOptions: {
watchQuery: {
errorPolicy: 'all'
}
}
});
}

Expand Down

0 comments on commit 61783f1

Please sign in to comment.