1fa607a2cdef0e0ef0a9b85e9f09aaef16224411
[qomet.git] / public / javascripts / utils / socketMessages.js
1 // Socket message list, easier life in case of a message renaming
2
3 let message = {
4 // Send answer (student --> server --> monitor)
5 newAnswer: "new answer",
6 // Receive all answers to an exam (monitor --> server --> student)
7 allAnswers: "all answers",
8 // Next 2 to monitor students disconnections
9 studentConnect: "student connect",
10 studentDisconnect: "student disconnect",
11 // And blur + onResize events (sockets only)
12 studentBlur: "student blur",
13 studentFocus: "student focus",
14 studentResize: "student resize",
15 studentFullscreen: "student fullscreen",
16 };
17
18 try { module.exports = message; } catch (err) { } //for server