소스 검색

fix: websocket

Lind 4 년 전
부모
커밋
d7c766d26b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/hooks/websocket/useWebSocket.ts

+ 1 - 1
src/hooks/websocket/useWebSocket.ts

@@ -84,7 +84,7 @@ export default function useWebSocket(socketUrl: string, options: Options = {}):
         };
         Store.set(SystemConst.GLOBAL_WEBSOCKET, websocketRef.current);
       } catch (error) {
-        throw new Error(error);
+        throw new Error(error as string);
       }
     }
   });