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