From fde44f5b49405fe68f3289e65b6d6fb776b3a4b9 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sat, 3 Feb 2024 09:34:51 -0600 Subject: [PATCH] why did it send undefined, who sent undefined --- site/src/App.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/site/src/App.vue b/site/src/App.vue index cf71df3..ee7a017 100644 --- a/site/src/App.vue +++ b/site/src/App.vue @@ -73,12 +73,13 @@ const loading = computed(() => status.value === 'CONNECTING' || status.value === function clickPlay() { open(); - send('hi'); + send('{"action":"ping"}'); } function action(evt: Action) { - console.log('send action', evt); - send(JSON.stringify(action)); + const s = JSON.stringify(action); + console.log('send action', evt, s); + send(s); } const loadingMe = ref(true);