mirror of
https://github.com/fergalmoran/dss-realtime.git
synced 2025-12-22 09:38:06 +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) {
|
||||
var hs = socket.handshake;
|
||||
console.log('A socket with sessionID ' + hs.sessionID + ' connected.');
|
||||
|
||||
var cookie = cookie_reader.parse(socket.handshake.headers.cookie);
|
||||
|
||||
console.log('A socket with sessionID ' + cookie['sessionid'] + ' connected.');
|
||||
sessions[cookie['sessionid']] = socket.id;
|
||||
clients[socket.id] = socket;
|
||||
|
||||
@@ -89,4 +89,4 @@ app.post("/notification", function (req, res) {
|
||||
console.log("Session with key " + req.body.sessionid + "not found");
|
||||
res.status(410).end();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user