diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/components/GolfPlayApp.client.tsx | 1 | ||||
| -rw-r--r-- | frontend/app/components/GolfWatchApp.client.tsx | 1 |
2 files changed, 2 insertions, 0 deletions
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); diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx index c8b1d53..f02bfb9 100644 --- a/frontend/app/components/GolfWatchApp.client.tsx +++ b/frontend/app/components/GolfWatchApp.client.tsx @@ -90,6 +90,7 @@ export default function GolfWatchApp({ game, sockToken }: Props) { } else if (readyState === ReadyState.OPEN) { if (lastJsonMessage !== null) { console.log(lastJsonMessage.type); + console.log(lastJsonMessage.data); if (lastJsonMessage.type === "watcher:s2c:start") { const { start_at } = lastJsonMessage.data; gameStart(start_at); |
