From bf6aef908b46a10a7d25911126037551d794375f Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 11 Apr 2023 09:18:08 -0400 Subject: [PATCH] no socketio --- backend/index.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/backend/index.js b/backend/index.js index 2099b9e..1551287 100644 --- a/backend/index.js +++ b/backend/index.js @@ -23,22 +23,17 @@ var app = express(); const server = require('http').createServer(app); +/* const io = require('socket.io')(server, { cors: { origin: "*", methods: ["GET", "POST"], } -}); - -/* -io.on('connection', function (socket) { - console.log('a user connected'); - socket.on('disconnect', function () { - console.log('user disconnected'); - }); });*/ + + // ------------------------------------------- @@ -242,7 +237,7 @@ function notify_clients(call) { - +/* io.sockets.on('connection', function (client) { clients[client.id] = { socket: client, active: false }; clients[client.id].timestamp = new Date(); @@ -298,7 +293,7 @@ io.sockets.on('connection', function (client) { }); }); - +*/ stats.init_stats();