Cancels a lecture if the user has sufficient permissions.

  • Parameters

    • socket: AuthenticatedSocket

      The Socket.IO socket initiating the call

    • io: Server

      The Socket.IO server instance

    • lectureid: string

      The unique lecture identifier

    • notYetPresentStudents: Record<string, unknown[]>

      Reference to stored missing students

    • presentStudents: Record<string, unknown[]>

      Reference to stored present students

    • lectureData: Record<string, unknown>

      Reference to lecture data

    • lectureTimeoutIds: Map<string, Timeout>

      Reference to stored timeouts

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

    Returns Promise<void>