Class SandaiClient

A client for interacting with the embedded sandai iframe.

The SandaiClient handles iframe communication, message passing, and interactions via the InteractionManager.

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.

Constructors

Properties

Constructors

  • Initializes the SandaiClient with a given iframe ID.

    Parameters

    • iframeId: string

      The ID of the target iframe element in the DOM.

    Returns SandaiClient

    Throws an error if the specified element does not exist or is not an iframe.

Properties

interactionManager: InteractionManager