Merge branch 'feat/web-interface-expansion-mockup' into main

This commit is contained in:
syntaxbullet
2026-01-07 13:39:41 +01:00
9 changed files with 357 additions and 9 deletions

View File

@@ -65,7 +65,21 @@ export class WebServer {
this.server = null;
}
}
public static get port(): number | undefined {
return this.server?.port;
}
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
}
}));
}
}
}