feat: expansion of web dashboard with live activity feed and metrics

This commit is contained in:
syntaxbullet
2026-01-07 13:34:29 +01:00
parent 63f55b6dfd
commit 618d973863
3 changed files with 49 additions and 0 deletions

View File

@@ -65,4 +65,17 @@ export class WebServer {
this.server = null;
}
}
public static broadcastLog(type: string, message: string) {
if (this.server) {
this.server.publish("status-updates", JSON.stringify({
type: "LOG",
data: {
timestamp: new Date().toLocaleTimeString(),
type,
message
}
}));
}
}
}