add WS client in frontend, start work on play website
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user