add half-working client

This commit is contained in:
2025-05-05 00:15:12 +02:00
parent 776ee8d637
commit bfa0ba8edf
13 changed files with 782 additions and 38 deletions

View File

@@ -1,8 +1,14 @@
import { PresentationManager } from "./presentationmgr";
import { PythagorasClient } from "./pythagoras_client";
async function main(): Promise<void> {
const conn = new PythagorasClient("/ws");
console.log(await conn.recv());
const ws_client = new PythagorasClient("/ws");
document.body.innerHTML = "";
const presentation_manager = new PresentationManager();
document.body.appendChild(presentation_manager.dom);
await presentation_manager.serve(ws_client);
}
main();
(<HTMLButtonElement>document.querySelector("#run")).onclick = () => {
main();
}