- // TODO: Prevent socket connection (just ignore) if student already connected
-// io.of('/').in(aid).clients((error, clients) => {
-// if (error)
-// throw error;
-// if (clients.some( c => { return c. .. == number; }))
-// // Problem: we just have a list of socket IDs (not handshakes)
-// });
- // TODO: next is conditional to "student not already taking the exam"
- socket.on(message.allAnswers, () => { //got all answers from teacher
- socket.emit(message.allAnswers, m);
- });