why did it send undefined, who sent undefined

This commit is contained in:
Branden J Brown 2024-02-03 09:34:51 -06:00
parent 23b6ab5728
commit fde44f5b49
1 changed files with 4 additions and 3 deletions

View File

@ -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);