close socket on url change

This commit is contained in:
Joel Wetzell
2026-03-21 12:58:21 -05:00
parent 80997df36d
commit 9d068ae2b6
+3
View File
@@ -21,6 +21,9 @@ export class EventsService {
constructor() {
effect(() => {
console.log('Websocket URL changed:', this.settingsService.wsUrl());
if (this.socket) {
this.socket.close();
}
this.reload();
});
}