mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-11 08:09:27 +00:00
close socket on url change
This commit is contained in:
@@ -21,6 +21,9 @@ export class EventsService {
|
|||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
console.log('Websocket URL changed:', this.settingsService.wsUrl());
|
console.log('Websocket URL changed:', this.settingsService.wsUrl());
|
||||||
|
if (this.socket) {
|
||||||
|
this.socket.close();
|
||||||
|
}
|
||||||
this.reload();
|
this.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user