A client for interacting with the embedded sandai iframe.
The SandaiClient handles iframe communication, message passing, and interactions via the InteractionManager.
SandaiClient
InteractionManager
const client = new SandaiClient("myIframeId"); Copy
const client = new SandaiClient("myIframeId");
The ID of the target iframe element in the DOM.
Throws an error if the specified element does not exist or is not an iframe.
Initializes the SandaiClient with a given iframe ID.
A client for interacting with the embedded sandai iframe.
The
SandaiClient
handles iframe communication, message passing, and interactions via theInteractionManager
.Usage
Param: iframeId
The ID of the target iframe element in the DOM.
Throws
Throws an error if the specified element does not exist or is not an iframe.