Shun Miyazawa 1 год назад
Родитель
Сommit
3bd4993fdf
1 измененных файлов с 2 добавлено и 2 удалено
  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]);
 };