Browse Source

skipNegotiation for websockets

PS-589-2fa-device-verification-settings
Kyle Spearrin 6 years ago
parent
commit
31a257407b
  1. 2
      src/services/notifications.service.ts

2
src/services/notifications.service.ts

@ -55,6 +55,8 @@ export class NotificationsService implements NotificationsServiceAbstraction { @@ -55,6 +55,8 @@ export class NotificationsService implements NotificationsServiceAbstraction {
this.signalrConnection = new signalR.HubConnectionBuilder()
.withUrl(this.url + '/hub', {
accessTokenFactory: () => this.apiService.getActiveBearerToken(),
skipNegotiation: true,
transport: signalR.HttpTransportType.WebSockets,
})
.withHubProtocol(new signalRMsgPack.MessagePackHubProtocol())
// .configureLogging(signalR.LogLevel.Trace)

Loading…
Cancel
Save