Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nasar165 committed May 3, 2024
1 parent 692c669 commit db147c6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/components/socket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ type Url = { url: string };
export default function Socket({ url }: Url): React.JSX.Element {
const [socket, setSocket] = useState<Websocket>();

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()) {
Expand Down

0 comments on commit db147c6

Please sign in to comment.