mirror of
https://github.com/fergalmoran/dss-realtime.git
synced 2025-12-26 03:29:38 +00:00
Altered logging in server
This commit is contained in:
@@ -54,10 +54,10 @@ sio.set('authorization', function (data, accept) {
|
|||||||
|
|
||||||
sio.sockets.on('connection', function (socket) {
|
sio.sockets.on('connection', function (socket) {
|
||||||
var hs = socket.handshake;
|
var hs = socket.handshake;
|
||||||
console.log('A socket with sessionID ' + hs.sessionID + ' connected.');
|
|
||||||
|
|
||||||
var cookie = cookie_reader.parse(socket.handshake.headers.cookie);
|
var cookie = cookie_reader.parse(socket.handshake.headers.cookie);
|
||||||
|
|
||||||
|
console.log('A socket with sessionID ' + cookie['sessionid'] + ' connected.');
|
||||||
sessions[cookie['sessionid']] = socket.id;
|
sessions[cookie['sessionid']] = socket.id;
|
||||||
clients[socket.id] = socket;
|
clients[socket.id] = socket;
|
||||||
|
|
||||||
@@ -89,4 +89,4 @@ app.post("/notification", function (req, res) {
|
|||||||
console.log("Session with key " + req.body.sessionid + "not found");
|
console.log("Session with key " + req.body.sessionid + "not found");
|
||||||
res.status(410).end();
|
res.status(410).end();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user