add half-working client
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user