mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
no socketio
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user