mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-19 05:03:57 +00:00
close socket on url change
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user