Explorar o código

rm unnecessary args

Shun Miyazawa hai 1 ano
pai
achega
3bd4993fdf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/app/src/stores/websocket.tsx

+ 2 - 2
apps/app/src/stores/websocket.tsx

@@ -68,10 +68,10 @@ export const useSetupGlobalSocketForPage = (pageId: string | undefined): void =>
   useEffect(() => {
     if (socket == null || pageId == null) { return }
 
-    socket.emit(SocketEventName.JoinPage, { socketId: socket.id, pageId });
+    socket.emit(SocketEventName.JoinPage, { pageId });
 
     return () => {
-      socket.emit(SocketEventName.LeavePage, { socketId: socket.id, pageId });
+      socket.emit(SocketEventName.LeavePage, { pageId });
     };
   }, [pageId, socket]);
 };