's'
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user