aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApp.client.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 15:41:58 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 15:41:58 +0900
commit8172d4c463f3782ecf924e641e96f18b4308e6a7 (patch)
tree9566c2c3752f085b92481fc7ceb221b908a0748c /frontend/app/components/GolfWatchApp.client.tsx
parent81dd1db4daa57e67b1f603c260afe6cb526e5278 (diff)
downloadphperkaigi-2025-albatross-8172d4c463f3782ecf924e641e96f18b4308e6a7.tar.gz
phperkaigi-2025-albatross-8172d4c463f3782ecf924e641e96f18b4308e6a7.tar.zst
phperkaigi-2025-albatross-8172d4c463f3782ecf924e641e96f18b4308e6a7.zip
feat(frontend): log websocket message payload
Diffstat (limited to 'frontend/app/components/GolfWatchApp.client.tsx')
-rw-r--r--frontend/app/components/GolfWatchApp.client.tsx1
1 files changed, 1 insertions, 0 deletions
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);