From c618a36072bdf1af45500bb905be88baae4f6621 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Tue, 10 Dec 2024 20:40:47 +0100 Subject: [PATCH] fix: wrong audio address --- frontend/react/src/audio/audiomanager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/react/src/audio/audiomanager.ts b/frontend/react/src/audio/audiomanager.ts index 0fbcad0e..5e797c9e 100644 --- a/frontend/react/src/audio/audiomanager.ts +++ b/frontend/react/src/audio/audiomanager.ts @@ -94,7 +94,7 @@ export class AudioManager { if (res === null) res = this.#address.match(/(?:http|https):\/\/(.+)/); let wsAddress = res ? res[1] : this.#address; - if (this.#endpoint) this.#socket = new WebSocket(`wss://${wsAddress}/${this.#endpoint}`); + if (this.#endpoint) this.#socket = new WebSocket(`wss://${wsAddress}${this.#endpoint}`); else if (this.#port) this.#socket = new WebSocket(`ws://${wsAddress}:${this.#port}`); else console.error("The audio backend was enabled but no port/endpoint was provided in the configuration");