This commit is contained in:
eric
2025-08-04 14:28:41 +08:00
parent 79568c0ea1
commit d146fe9589

View File

@@ -122,7 +122,7 @@ const Index = () => {
}, []);
useEffect(() => {
// 创建 WebSocket 连接
const socket = new WebSocket("ws://192.168.31.222:8888"); // 注意使用 ws://
const socket = new WebSocket("ws://127.0.0.1:8888"); // 注意使用 ws://
// WebSocket 打开时触发
socket.onopen = () => {