Merge pull request #28979 from drodil/signal_multi_connect

fix(signals): prevent duplicate connect requests
This commit is contained in:
Fredrik Adelöw
2025-03-06 21:16:56 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-signals': patch
---
Fixed multiple signal connection attempts when there are multiple subscriptions at the same time
+1 -1
View File
@@ -135,7 +135,7 @@ export class SignalClient implements SignalApi {
}
private async connect() {
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
if (this.ws && this.ws.readyState !== WebSocket.CLOSED) {
return;
}