merged with main branch to clear the testing commits

This commit is contained in:
2025-06-02 11:22:06 +05:30
107 changed files with 1344 additions and 2364 deletions

View File

@@ -1,21 +1,17 @@
import express from "express"
import { Response, Request } from "express";
import express,{ Response, Request } from "express";
import http from "http";
import dotenv from "dotenv"; // Import dotenv
import dotenv from "dotenv";
dotenv.config();
import { initSocketServer } from "./socket/socketManager.ts";
import { SocketServer } from "./manager/manager.ts";
const app = express();
const PORT = process.env.SOCKET_PORT;
const server = http.createServer(app);
app.get('/', (req: Request, res: Response) => {
res.send('Hello, I am Major-Dwinzo RealTime!');
app.get("/", (req: Request, res: Response) => {
res.send("Hello, I am Major-Dwinzo RealTime!");
});
// initSocketServer(server);
SocketServer(server)
server.listen(PORT, () => {
console.log(`socket-Server is running on http://localhost:${PORT}`);