add: improved the frontend and the backend by adding websockets

This commit is contained in:
Lukian 2025-04-07 22:46:04 +02:00
parent ecf7b61aca
commit fbf7821320
18 changed files with 255 additions and 65 deletions

View file

@ -7,6 +7,7 @@ const cors = require("cors");
require("dotenv").config();
const app = express();
var expressWs = require('express-ws')(app);
const port = config.port || 3000;
app.use(express.json());