Browse Source

Remove SignalR transport parameter on clients

dotnet3-migration/reorganize-folders
Miguel Veloso 5 years ago
parent
commit
30aeec8b72
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      src/Web/WebMVC/Views/Shared/_Layout.cshtml
  2. +0
    -1
      src/Web/WebSPA/Client/modules/shared/services/signalr.service.ts

+ 0
- 1
src/Web/WebMVC/Views/Shared/_Layout.cshtml View File

@ -102,7 +102,6 @@
function stablishConnection(cb) { function stablishConnection(cb) {
let connection = new signalR.HubConnectionBuilder() let connection = new signalR.HubConnectionBuilder()
.withUrl('@settings.Value.SignalrHubUrl/hub/notificationhub', { .withUrl('@settings.Value.SignalrHubUrl/hub/notificationhub', {
transport: signalR.HttpTransportType.LongPolling,
accessTokenFactory: () => { accessTokenFactory: () => {
return "Authorization", getToken(); return "Authorization", getToken();
} }


+ 0
- 1
src/Web/WebSPA/Client/modules/shared/services/signalr.service.ts View File

@ -43,7 +43,6 @@ export class SignalrService {
private register() { private register() {
this._hubConnection = new HubConnectionBuilder() this._hubConnection = new HubConnectionBuilder()
.withUrl(this.SignalrHubUrl + '/hub/notificationhub', { .withUrl(this.SignalrHubUrl + '/hub/notificationhub', {
transport: HttpTransportType.LongPolling,
accessTokenFactory: () => this.securityService.GetToken() accessTokenFactory: () => this.securityService.GetToken()
}) })
.configureLogging(LogLevel.Information) .configureLogging(LogLevel.Information)


Loading…
Cancel
Save