fix: chat 4 omg wtf

This commit is contained in:
2025-03-15 23:24:23 +01:00
parent 5751ad1c64
commit b470c33e9d

View File

@@ -17,7 +17,7 @@ export default function ChatPanel() {
const socket = new WebSocket(
`ws${window.location.protocol === 'https:' ? 's' : ''}://${
window.location.host
}/api/stream/chat`
}/api/stream/chat/${username}`
);
socketRef.current = socket;
@@ -62,7 +62,7 @@ export default function ChatPanel() {
const socket = new WebSocket(
`ws${window.location.protocol === 'https:' ? 's' : ''}://${
window.location.host
}/api/stream/chat`
}/api/stream/chat/${username}`
);
socket.onopen = () => {
socket.send(message);