mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 12:13:45 +00:00
Merge remote-tracking branch 'origin' into auth/pm-14943/auth-request-extension-dialog-approve
This commit is contained in:
1104
.github/workflows/release-desktop-beta.yml
vendored
1104
.github/workflows/release-desktop-beta.yml
vendored
File diff suppressed because it is too large
Load Diff
@@ -78,9 +78,7 @@ export class SignalRConnectionService {
|
||||
return new Observable<SignalRNotification>((subsciber) => {
|
||||
const connection = this.hubConnectionBuilderFactory()
|
||||
.withUrl(notificationsUrl + "/hub", {
|
||||
accessTokenFactory: async () => {
|
||||
return this.apiService.getActiveBearerToken(userId);
|
||||
},
|
||||
accessTokenFactory: () => this.apiService.getActiveBearerToken(userId),
|
||||
skipNegotiation: true,
|
||||
transport: HttpTransportType.WebSockets,
|
||||
})
|
||||
@@ -138,12 +136,9 @@ export class SignalRConnectionService {
|
||||
});
|
||||
|
||||
// Start connection
|
||||
connection
|
||||
.start()
|
||||
.then(() => {})
|
||||
.catch(() => {
|
||||
scheduleReconnect();
|
||||
});
|
||||
connection.start().catch(() => {
|
||||
scheduleReconnect();
|
||||
});
|
||||
|
||||
return () => {
|
||||
// Cancel any possible scheduled reconnects
|
||||
|
||||
Reference in New Issue
Block a user