added findmatch event

This commit is contained in:
2025-11-18 09:28:07 +01:00
parent c77e534ed8
commit 4bb485e833

View File

@@ -184,6 +184,12 @@ pub async fn handle_connection(
)
.await;
}
FindMatch => {
let mut wait_queue = waiting_queue.lock().await;
wait_queue.push_back(player_id.clone());
println!("Appended {} to the waiting queue", player_id);
println!("queue {:?}", wait_queue);
}
_ => {}
}
}