Implement waiting room

This commit is contained in:
2025-02-28 22:50:00 +01:00
parent 11b3b48caa
commit 76580841af
9 changed files with 705 additions and 11 deletions

View File

@ -13,7 +13,8 @@ app.disable("x-powered-by");
const server = http.createServer(app);
const io = new Server(server, {cors: {origin: "*"}});
io.on("connection", require("./handler/connection"));
// Pass io to the connection handler
io.on("connection", require("./handler/connection")(io));
server.listen(5287, () => {
console.log("Server running on port 5287");