From 1c5e0f2a6955e569637775f545f005400713634d Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 3 Jul 2023 14:24:43 +0800 Subject: [PATCH] update --- .gitignore | 3 ++- src/store/socket-data-provider.js | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ce341eb..54af32d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ /.env.local -v3dApp/ \ No newline at end of file +v3dApp/ +*.zip \ No newline at end of file diff --git a/src/store/socket-data-provider.js b/src/store/socket-data-provider.js index 013dc7f..41e81ea 100644 --- a/src/store/socket-data-provider.js +++ b/src/store/socket-data-provider.js @@ -7,9 +7,7 @@ export const SocketContextProvider = (props) => { const [hisState, setHisState] = useState(null); useEffect(() => { - const socket = new WebSocket( - 'ws://192.168.1.12:8081/xc-screen/websocket/1', - ); + const socket = new WebSocket('ws://172.16.1.55:8081/xc-screen/websocket/1'); socket.onopen = () => { console.log('[*] socket connected!'); };