commit error

This commit is contained in:
Peter Maquiran
2024-03-27 16:04:50 +01:00
parent 66c65cbd09
commit 54aea5a6d8
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ export interface Environment {
dispatchPR: string
storageProduction: boolean
rejectUnauthorized: string
fileHub: string
}
@@ -37,4 +37,4 @@ export interface version {
change: string;
changeStatus: string;
changeAuthor: string;
}
}
@@ -6,6 +6,7 @@ import { HttpClient, HttpHeaders, HttpEventType } from '@angular/common/http';
import { CMAPIService } from '../shared/repository/CMAPI/cmapi.service';
import { HubConnectionBuilder } from '@microsoft/signalr';
import { ok, err as Err, Result } from 'neverthrow';
import { environment } from 'src/environments/environment';
@Injectable({
providedIn: 'root'
})
@@ -90,7 +91,7 @@ class ReconnectingWebSocketSignalR {
}
this.connection = new signalR.HubConnectionBuilder()
.withUrl('https://gdcmapi-dev.dyndns.info/FileHub', {
.withUrl( environment.fileHub, {
transport: signalR.HttpTransportType.LongPolling,
accessTokenFactory: () => SessionStore.user.Authorization
})