boton de salir cierra la sala

This commit is contained in:
2025-08-16 17:31:46 -06:00
parent 627f2e0608
commit abe0d3d81f
2 changed files with 38 additions and 3 deletions

View File

@@ -95,6 +95,11 @@ const previewPlayer = computed(() => ({
color: colorInput.value || playerColor.value
}));
// Define missing reactive variables
const availableRooms = ref<any[]>([]);
const totalPlayers = ref(0);
const onlinePlayers = ref<any[]>([]);
onMounted(async () => {
try {
const room = await colyseusService.joinLobby();