This repository has been archived on 2026-03-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cau-praktikum/app/static/js/main.js
T

17 lines
318 B
JavaScript

import { createWSClient } from "./ws.js";
import {
handleP2Connected,
handleGameStarted,
handleCodeGameCreated,
} from "./ws_handlers.js";
function main() {
createWSClient({
onGameStarted: handleGameStarted,
onP2Connected: handleP2Connected,
onGameCreated: handleCodeGameCreated,
});
}
main();