+
+
Room ID: ${room.roomId}
+ Bees: ${room.peerCount}
+
+
+ `).join('');
+ // console.log("roomsHtml", roomsHtml)
+ // Replace room data placeholder
+ activeHtml = activeHtml.replace('{{activeMeetings}}', roomsHtml);
+ }
+ else {
+ activeHtml = activeHtml.replace('{{activeMeetings}}', '');
+ }
+ res.send(activeHtml);
+ } catch (err) {
+ console.log("error in active meetings", err)
+ res.send(activeHtml);
}
- activeHtml = activeHtml.replace('{{currentYear}}', dynamicContent.currentYear);
-
- // Create HTML for room data matching the client-side structure
- const roomsHtml = dynamicContent.rooms.map(room => `
-