diff --git a/server.js b/server.js index 03fd73e..4ef5bf4 100644 --- a/server.js +++ b/server.js @@ -86,6 +86,7 @@ app.post("/notification", function (req, res) { clients[sessions[req.body.sessionid]].emit('notification', {message: req.body.message}); res.send(req.body); }else{ - res.send(410); + console.log("Session with key " + req.body.sessionid + "not found"); + res.status(410).end(); } }); \ No newline at end of file