Yuki Takei 7 mesi fa
parent
commit
2f92596eee
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apps/app/src/states/socket-io/socket-io.ts

+ 1 - 1
apps/app/src/states/socket-io/socket-io.ts

@@ -15,7 +15,7 @@ const globalSocketAtom = atom<Socket | null>(null);
 /**
  * Hook to get WebSocket connection
  */
-export const useGlobalSocket = () => useAtomValue(globalSocketAtom);
+export const useGlobalSocket = (): Socket | null => useAtomValue(globalSocketAtom);
 
 /**
  * Hook to initialize WebSocket connection