ping on the wobseckot
This commit is contained in:
@@ -37,7 +37,13 @@ const toggleDark = useToggle(dark);
|
||||
const theme = computed(() => dark.value ? 'dark' : 'light');
|
||||
const themeIcon = computed(() => dark.value ? 'mdi-moon-waxing-crescent' : 'mdi-white-balance-sunny');
|
||||
|
||||
const { status, data, send, open } = useWebSocket<string>(`wss://${window.location.host}/queue`, { immediate: false });
|
||||
const { status, data, send, open } = useWebSocket<string>(`wss://${window.location.host}/queue`, {
|
||||
immediate: false,
|
||||
heartbeat: {
|
||||
interval: 5000,
|
||||
message: '{"action":"ping"}',
|
||||
},
|
||||
});
|
||||
const game = ref<Game | null>(null);
|
||||
const dealer = ref<boolean | null>(null);
|
||||
watchEffect(() => {
|
||||
|
Reference in New Issue
Block a user