diff --git a/resources/views/rd/sound-logo/index.blade.php b/resources/views/rd/sound-logo/index.blade.php index ceca6417..3978bc79 100644 --- a/resources/views/rd/sound-logo/index.blade.php +++ b/resources/views/rd/sound-logo/index.blade.php @@ -1808,11 +1808,14 @@ function soundLogo() { })); }; - ws.onmessage = (event) => { - // 바이너리 Blob은 무시 (JSON 메시지만 처리) - if (event.data instanceof Blob) return; + ws.onmessage = async (event) => { + let raw = event.data; + // Blob이면 텍스트로 변환 + if (raw instanceof Blob) { + raw = await raw.text(); + } let msg; - try { msg = JSON.parse(event.data); } catch { return; } + try { msg = JSON.parse(raw); } catch { return; } // Setup 완료 if (msg.setupComplete) {