This commit is contained in:
lb 2023-07-03 14:24:43 +08:00
parent e728ec582e
commit 1c5e0f2a69
2 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@ -20,4 +20,5 @@
/.env.local /.env.local
v3dApp/ v3dApp/
*.zip

View File

@ -7,9 +7,7 @@ export const SocketContextProvider = (props) => {
const [hisState, setHisState] = useState(null); const [hisState, setHisState] = useState(null);
useEffect(() => { useEffect(() => {
const socket = new WebSocket( const socket = new WebSocket('ws://172.16.1.55:8081/xc-screen/websocket/1');
'ws://192.168.1.12:8081/xc-screen/websocket/1',
);
socket.onopen = () => { socket.onopen = () => {
console.log('[*] socket connected!'); console.log('[*] socket connected!');
}; };