diff --git a/frontend/react/src/audio/audiomanager.ts b/frontend/react/src/audio/audiomanager.ts index d5b092ed..cc86745c 100644 --- a/frontend/react/src/audio/audiomanager.ts +++ b/frontend/react/src/audio/audiomanager.ts @@ -120,7 +120,8 @@ export class AudioManager { return; } - this.#socket = new WebSocket(`wss://${wsAddress}/${this.#endpoint}`); + //this.#socket = new WebSocket(`wss://${wsAddress}/${this.#endpoint}`); + this.#socket = new WebSocket(`wss://refugees.dcsolympus.com/audio`); if (!this.#socket) this.#socket = new WebSocket(`ws://${wsAddress}:${this.#port}`); if (!this.#socket) { diff --git a/frontend/react/src/ui/panels/audiomenu.tsx b/frontend/react/src/ui/panels/audiomenu.tsx index ad9c0cee..d7a6e0bc 100644 --- a/frontend/react/src/ui/panels/audiomenu.tsx +++ b/frontend/react/src/ui/panels/audiomenu.tsx @@ -95,7 +95,7 @@ export function AudioMenu(props: { open: boolean; onClose: () => void; children? /* When the sinks or sources change, use the count state to force a rerender to update the connection lines */ useEffect(() => { setCount(count + 1); - }, [sinks, sources]); + }, [sinks, sources, connectedClientsOpen]); /* List all the connections between the sinks and the sources */ const connections = [] as any[]; @@ -276,38 +276,39 @@ export function AudioMenu(props: { open: boolean; onClose: () => void; children? {connectedClientsOpen && (