X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=sockets.js;fp=sockets.js;h=d743a105c5b5060f4d70b97693db99b3f995bc8d;hb=92c604bb02b4c46cd3b45d834652103589c61da1;hp=1719f9ab629fa77792f924d6c2ce96b2d8d6c2d6;hpb=435371c7ba4b60790953115b9ebed68a047bb0a3;p=qomet.git diff --git a/sockets.js b/sockets.js index 1719f9a..d743a10 100644 --- a/sockets.js +++ b/sockets.js @@ -7,6 +7,8 @@ const ObjectId = require("bson-objectid"); // --> 2 sockets on monitoring page: one with ns "/" et one dedicated to the exam, triggered after the first // --> The monitoring page should not be closed during exam (otherwise monitors won't receive any more data) +// TOOD need to re-introduce disconnections count + time (showed in monitoring and stored + function examRoom(socket) { let students = { }; const aid = ObjectId(socket.handshake.query.aid);