From db147c635dfbc3332a59106dba4984e5ab00f405 Mon Sep 17 00:00:00 2001 From: Nasar Eddaoui Date: Fri, 3 May 2024 22:30:59 +0700 Subject: [PATCH] remove unused code --- app/components/socket.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/components/socket.tsx b/app/components/socket.tsx index 4dc84dd..bfae188 100644 --- a/app/components/socket.tsx +++ b/app/components/socket.tsx @@ -8,17 +8,6 @@ type Url = { url: string }; export default function Socket({ url }: Url): React.JSX.Element { const [socket, setSocket] = useState(); - const cleanup = () => { - try { - console.log('clean up lose connection'); - console.log(socket); - - socket?.Stop(1000); - } catch (err) { - console.error(err); - } - }; - const start = () => { try { if (!socket?.Alive()) {