Handles the event where a student arrives to a lecture with a given security hash.

If validation fails or insertion fails

  • Parameters

    • socket: AuthenticatedSocket

      The client's socket instance

    • io: Server

      The primary Socket.IO server instance

    • secureHash: string

      The security hash used to validate arrival

    • studentId: string

      The student's unique ID

    • unixtime: number

      The time of arrival in UNIX format

    • lectureid: number

      The ID of the lecture

    • lectureData: LectureDataStore

      Shared reference to global lecture data

    • notYetPresentStudents: AttendanceRecord

      Shared reference to students not yet present in each lecture

    • presentStudents: AttendanceRecord

      Shared reference to currently present students in each lecture

    • listOfIpAlreadyUsedLecture: Map<number, Map<string, IpStudentRecord>>

      Map tracking used IPs for each lecture

    Returns Promise<void>