Skip to main content

Installation

Install the Duix H5 SDK via npm:

Import and Initialize

Import the SDK and create a new instance. The init() method sets up the rendering container, authentication, and platform connection.

Start the Session

Once initialization succeeds, listen for the initialSuccess event before calling start(). This ensures all required assets and network resources are ready.
Note: Do not store the duix instance inside a reactive data object (e.g., Vue’s data() or React’s state). SDK instances should remain stable references outside reactivity systems.