From 8ea8219f2cf539fb396e09f509eecf9e3d6a63e3 Mon Sep 17 00:00:00 2001 From: vincentastolfi Date: Wed, 17 Apr 2024 21:38:19 +0200 Subject: [PATCH] :green_heart: CI test --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 67ba74b..2386c1f 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,7 @@ const express = require("express"); const app = express(); const http = require("http").Server(app); const io = require("socket.io")(http); +const port = 8081; const { Player } = require(`${__dirname}/businesses/Player.js`); const { Room } = require(`${__dirname}/businesses/Room.js`); @@ -12,6 +13,10 @@ let players = []; app.use(express.static("public")); +http.listen(port, () => { + console.log(`Listening on http://localhost:${port}`); +}); + app.get("/", (req, res) => { res.sendFile(path.join(__dirname, "/public/index.html")); });