From 7d86a1f30ca1155609e4dce1654761a46a864c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 8 Mar 2026 14:19:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[sound-logo]=20Alpine=20=ED=91=9C?= =?UTF-8?q?=ED=98=84=EC=8B=9D=20=EC=97=90=EB=9F=AC=20+=20WebSocket=20Blob?= =?UTF-8?q?=20=ED=8C=8C=EC=8B=B1=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - x-text 속성에서 이스케이프된 따옴표 제거 (Blade 빌드 시 깨짐 방지) - WebSocket onmessage에서 Blob 바이너리 데이터 수신 시 JSON.parse 건너뛰기 --- resources/views/rd/sound-logo/index.blade.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/rd/sound-logo/index.blade.php b/resources/views/rd/sound-logo/index.blade.php index 163aa8ae..ceca6417 100644 --- a/resources/views/rd/sound-logo/index.blade.php +++ b/resources/views/rd/sound-logo/index.blade.php @@ -414,7 +414,7 @@
- +
@@ -1809,7 +1809,10 @@ function soundLogo() { }; ws.onmessage = (event) => { - const msg = JSON.parse(event.data); + // 바이너리 Blob은 무시 (JSON 메시지만 처리) + if (event.data instanceof Blob) return; + let msg; + try { msg = JSON.parse(event.data); } catch { return; } // Setup 완료 if (msg.setupComplete) {