diff --git a/public/host.html b/public/host.html index d13ae0e..03d4f60 100644 --- a/public/host.html +++ b/public/host.html @@ -115,9 +115,6 @@ .then(res => res.json()) .then(data => { musicFiles = data.files.sort((a, b) => (parseInt(a.match(/^\d+/), 10) || 0) - (parseInt(b.match(/^\d+/), 10) || 0)); }); - // ▼▼▼【確認】WebSocket接続先を公開URLに固定 ▼▼▼ - const conn = new WebSocket('wss://www.koeki-prj.org/hayahosi/'); - playBtn.addEventListener("click", () => { if (currentIndex === -1) return; conn.send(JSON.stringify({ type: "play" })); }); pauseBtn.addEventListener("click", () => conn.send(JSON.stringify({ type: "pause" }))); stopBtn.addEventListener("click", () => conn.send(JSON.stringify({ type: "stop" })));