force game to clear on ws loss
This commit is contained in:
parent
da516b75f4
commit
af9b287252
@ -43,6 +43,11 @@ const { status, data, send, open } = useWebSocket<string>(`wss://${window.locati
|
||||
interval: 1000,
|
||||
message: '{"action":"ping"}',
|
||||
},
|
||||
onDisconnected: (ws, evt) => {
|
||||
console.warn('lost connection', {evt});
|
||||
game.value = null;
|
||||
dealer.value = null;
|
||||
}
|
||||
});
|
||||
const game = ref<Game | null>(null);
|
||||
const dealer = ref<boolean | null>(null);
|
||||
|
Loading…
Reference in New Issue
Block a user