Skip to content

Commit

Permalink
Update websocket notifications channel path (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
hareetd authored Jun 30, 2021
1 parent 0042988 commit be5a146
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/Shared/Services/NotificationChannel.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export class NotificationChannel {
notifications.info('WebSocket Client Activity', `Client at ${addr} ${status}`);
});

const clientUrl = fromFetch(`${this.apiSvc.authority}/api/v1/clienturl`)
const notificationsUrl = fromFetch(`${this.apiSvc.authority}/api/v1/notifications_url`)
.pipe(
concatMap(resp => from(resp.json())),
map((url: any): string => url.clientUrl)
map((url: any): string => url.notificationsUrl)
);
combineLatest(clientUrl, this.apiSvc.getToken(), this.apiSvc.getAuthMethod())
combineLatest(notificationsUrl, this.apiSvc.getToken(), this.apiSvc.getAuthMethod())
.pipe(first())
.subscribe(
(parts: string[]) => {
Expand Down Expand Up @@ -101,7 +101,7 @@ export class NotificationChannel {
err => this.logError('WebSocket error', err)
);
},
(err: any) => this.logError('Client URL configuration', err)
(err: any) => this.logError('Notifications URL configuration', err)
);
}

Expand Down

0 comments on commit be5a146

Please sign in to comment.