Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private register() {
this._hubConnection = new HubConnectionBuilder()
.withUrl(this.SignalrHubUrl + '/hub/notificationhub', {
accessTokenFactory: () => this.securityService.GetToken()
})
.configureLogging(LogLevel.Information)
.withAutomaticReconnect()
.build();
}
private createConnection() {
this.hubConnection = new HubConnectionBuilder()
.withUrl(environment.baseUrls.server + 'coolmessages')
.withAutomaticReconnect()
.configureLogging(LogLevel.Information)
.build();
}