client/src/hooks/socket/index.ts
Function useSocket
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSocket = (
events: { [key: string]: (...args: unknown[]) => void } = {},
options?: SocketOptions,
) => {
const socketRef = useRef<Socket | undefined>(undefined);