From 8172d4c463f3782ecf924e641e96f18b4308e6a7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 22 Aug 2024 15:41:58 +0900 Subject: feat(frontend): log websocket message payload --- frontend/app/components/GolfPlayApp.client.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/app/components/GolfPlayApp.client.tsx') diff --git a/frontend/app/components/GolfPlayApp.client.tsx b/frontend/app/components/GolfPlayApp.client.tsx index 0230426..4bd464b 100644 --- a/frontend/app/components/GolfPlayApp.client.tsx +++ b/frontend/app/components/GolfPlayApp.client.tsx @@ -103,6 +103,7 @@ export default function GolfPlayApp({ } else if (readyState === ReadyState.OPEN) { if (lastJsonMessage !== null) { console.log(lastJsonMessage.type); + console.log(lastJsonMessage.data); if (lastJsonMessage.type === "player:s2c:start") { const { start_at } = lastJsonMessage.data; gameStart(start_at); -- cgit v1.2.3-70-g09d2