mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Update main.js
This commit is contained in:
parent
ec15909d55
commit
5a3f965c58
1 changed files with 14 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ async function createRoomContainers() {
|
|||
const results = await Promise.allSettled(roomPromises);
|
||||
const successfulRooms = results.filter(r => r.status === 'fulfilled' && r.value).length;
|
||||
|
||||
console.log(`Total rooms created and connected: ${successfulRooms}`);
|
||||
console.log(`Total rooms created and connected (${numberRooms}): ${successfulRooms}`);
|
||||
console.log('Finished room creation and teacher connection');
|
||||
}
|
||||
|
||||
|
|
@ -177,6 +177,19 @@ function disconnectParticipants() {
|
|||
console.log('All participants disconnected successfully.');
|
||||
}
|
||||
|
||||
function generateExecutionData() {
|
||||
console.log('Generating execution data');
|
||||
aggreatedData = {};
|
||||
Object.keys(roomAssociations).forEach((roomId, roomIndex) => {
|
||||
const participants = roomAssociations[roomId];
|
||||
const data = participants.watcher.roomRessourcesData;
|
||||
aggreatedData.push(data);
|
||||
|
||||
|
||||
});
|
||||
console.log('finished generating execution data');
|
||||
}
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
await createRoomContainers();
|
||||
|
|
|
|||
Loading…
Reference in a new issue