docs: simplify Docker commands in README and enhance logging in WebRTC stats exporter
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m16s

This commit is contained in:
2025-02-13 16:41:09 +01:00
parent 752cea15d4
commit f579000a96
3 changed files with 14 additions and 10 deletions

View File

@@ -92,10 +92,12 @@ class WebrtcInternalExporter {
window.postMessage(
{
event: "webrtc-internal-exporter:peer-connection-stats",
stats
stats: [stats]
},
stats
[stats]
);
log(`Single stat collected:`, [stats]);
}
async collectAllStats() {
@@ -112,11 +114,12 @@ class WebrtcInternalExporter {
window.postMessage(
{
event: "webrtc-internal-exporter:peer-connections-stats",
data: JSON.parse(JSON.stringify(stats)),
data: stats
},
stats
);
log(`Stats collected:`, JSON.parse(JSON.stringify(stats)));
log(`Stats collected:`, stats);
setTimeout(this.collectAllStats.bind(this), this.updateInterval);
return stats;