Last updated 1 year ago
To use any methods, you will need to create a new instance of . The credentials are obtained from the LMS automatically via the URL launch parameters.
This returns a object which you can use to communicate with the LRS.
import Cmi5 from "@xapi/cmi5"; // Create Cmi5 instance const cmi5: Cmi5 = new Cmi5(); // Initialize AU cmi5.initialize();