From 8172d4c463f3782ecf924e641e96f18b4308e6a7 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Thu, 22 Aug 2024 15:41:58 +0900
Subject: feat(frontend): log websocket message payload

---
 frontend/app/components/GolfWatchApp.client.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'frontend/app/components/GolfWatchApp.client.tsx')

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);
-- 
cgit v1.3.1

