We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f16ebe commit 2f15744Copy full SHA for 2f15744
1 file changed
src/app/core/services/websocket/websocket.ts
@@ -153,8 +153,8 @@ export class WebSocket implements OnDestroy {
153
154
// If already connected and not yet subscribed via STOMP, do it now.
155
// (If not connected yet, resubscribeAll() will handle it on onConnect.)
156
- const subject = this.topicSubjects.get(topic)!;
157
- if (this.connected && !this.stompSubscriptions.has(topic)) {
+ const subject = this.topicSubjects.get(topic);
+ if (subject && this.connected && !this.stompSubscriptions.has(topic)) {
158
this.createStompSubscription(topic, subject);
159
}
160
0 commit comments