The socket instance representing the client
The root Socket.IO server instance
The ID of the student to insert
The ID of the lecture
Reference to the global record of students not yet present
Reference to the global record of students currently present
Manually adds a student to the lecture attendance, with role checking, input validation, async fetch calls, and error handling.
Throws
When student insertion fails