From d1fc2ecc67e7905f7da81d687a05316728acf4a3 Mon Sep 17 00:00:00 2001 From: matevszm Date: Wed, 13 Nov 2024 10:18:23 +0100 Subject: [PATCH] debug: colab logs --- src/hooks/useCollabSocket.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hooks/useCollabSocket.ts b/src/hooks/useCollabSocket.ts index b82866b..44ee56f 100644 --- a/src/hooks/useCollabSocket.ts +++ b/src/hooks/useCollabSocket.ts @@ -181,10 +181,14 @@ export function useCollabSocket( true // volatile ); } else { - console.error('Failed attempt to broadcast mouse location'); + console.error('Failed attempt to broadcast mouse location', { + socket, + socketId: socket?.id, + excalidrawApi, + }); } }, - [broadcastSocketData, excalidrawApi, socket?.id, user?.displayName] + [broadcastSocketData, excalidrawApi, socket, user?.displayName] ); const broadcastCanvas = useCallback(