no socketio

This commit is contained in:
Luke Berndt
2023-04-11 09:18:08 -04:00
parent af7a794337
commit bf6aef908b

View File

@@ -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();