add WS client in frontend, start work on play website

This commit is contained in:
2026-02-25 19:57:11 +01:00
parent 2e65f0011f
commit 3f4ea57ee1
8 changed files with 88 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
import { createWSClient } from "./ws.js";
import {
handleP2Connected,
handleGameStarted,
handleCodeGameCreated,
} from "./ws_handlers.js";
function main() {
createWSClient({
onGameStarted: handleGameStarted,
onP2Connected: handleP2Connected,
onGameCreated: handleCodeGameCreated,
});
}
main();