|
|
@ -38,7 +38,7 @@ const RightInfo = () => {
|
|
|
|
const ws = useRef<Socket>(new Socket(new SocketOption()))
|
|
|
|
const ws = useRef<Socket>(new Socket(new SocketOption()))
|
|
|
|
const [socketData, setsocketData] = useState<any>({})
|
|
|
|
const [socketData, setsocketData] = useState<any>({})
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
startSocket()
|
|
|
|
// startSocket()
|
|
|
|
|
|
|
|
|
|
|
|
return () => {
|
|
|
|
return () => {
|
|
|
|
ws.current.dispose()
|
|
|
|
ws.current.dispose()
|
|
|
|