mirror of
https://github.com/SrIzan10/hctv.git
synced 2026-06-06 00:56:56 +00:00
fix: chat fix 2
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user