diff --git a/platform-code/src/microhost/components/rightInfo/index.tsx b/platform-code/src/microhost/components/rightInfo/index.tsx index 625c9b3..f19c270 100644 --- a/platform-code/src/microhost/components/rightInfo/index.tsx +++ b/platform-code/src/microhost/components/rightInfo/index.tsx @@ -35,15 +35,15 @@ const RightInfo = () => { const [searchList, setSearchList] = useState([]) const [msgnum, setmsgnum] = useState(""); //const [isHidden, setIsHidden] = useState(true); // 初始化状态变量为 false - const ws = useRef(new Socket(new SocketOption())) - const [socketData, setsocketData] = useState({}) - useEffect(() => { - // startSocket() + // const ws = useRef(new Socket(new SocketOption())) + // const [socketData, setsocketData] = useState({}) + // useEffect(() => { + // startSocket() - return () => { - ws.current.dispose() - } - }, []); + // return () => { + // ws.current.dispose() + // } + // }, []); // const startSocket = () => { // let option = new SocketOption()