fix: chat fix 2

This commit is contained in:
2025-03-15 23:03:28 +01:00
parent 10a7cc5ed5
commit 6289b73498

View File

@@ -25,7 +25,7 @@ export default function ChatPanel() {
const socketRef = useRef<WebSocket | null>(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 = () => {