1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-22 09:55:55 +02:00

skipNegotiation for websockets

This commit is contained in:
Kyle Spearrin 2020-03-21 00:19:40 -04:00
parent 3ad546c39f
commit 31a257407b

View File

@ -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)