Implement waiting room
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user