diff --git a/src/components/app/ChatPanel/ChatPanel.tsx b/src/components/app/ChatPanel/ChatPanel.tsx index fa55c21..68a41db 100644 --- a/src/components/app/ChatPanel/ChatPanel.tsx +++ b/src/components/app/ChatPanel/ChatPanel.tsx @@ -25,7 +25,7 @@ export default function ChatPanel() { const socketRef = useRef(null); useEffect(() => { - const socket = new WebSocket(`/api/stream/chat/${username}`); + const socket = new WebSocket(`ws://${window.location.host}/api/stream/chat/${username}`); socketRef.current = socket; socket.onopen = () => {