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