mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-15 02:07:50 -05:00
no socketio
This commit is contained in:
@@ -23,22 +23,17 @@ var app = express();
|
|||||||
|
|
||||||
const server = require('http').createServer(app);
|
const server = require('http').createServer(app);
|
||||||
|
|
||||||
|
/*
|
||||||
const io = require('socket.io')(server, {
|
const io = require('socket.io')(server, {
|
||||||
cors: {
|
cors: {
|
||||||
origin: "*",
|
origin: "*",
|
||||||
methods: ["GET", "POST"],
|
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) {
|
io.sockets.on('connection', function (client) {
|
||||||
clients[client.id] = { socket: client, active: false };
|
clients[client.id] = { socket: client, active: false };
|
||||||
clients[client.id].timestamp = new Date();
|
clients[client.id].timestamp = new Date();
|
||||||
@@ -298,7 +293,7 @@ io.sockets.on('connection', function (client) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
stats.init_stats();
|
stats.init_stats();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user