Skip to main content

Overview

This section provides a detailed reference for all classes available in the Suki Web SDK.

SDKClientInstance

The SDKClientInstance is the primary interface for interacting with the Suki Web SDK, providing comprehensive methods for managing encounters, ambient sessions, and event subscriptions. The code snippet below shows how to use the SDKClientInstance class to interact with the Suki Web SDK.
JavaScript
interface SDKClientInstance {
  activeAmbientId: string | null;
  attemptLogin(): Promise<true | void>;
  setPartnerToken(partnerToken: string): void;
  cancelAmbient(): void;
  cleanup(): void;
  destroy(): void;
  mount(options: MountOptions): Promise<void>;
  on<T extends keyof EmitterEvents>(
    type: T,
    handler: (data: EmitterEvents[T]) => void | Promise<void>,
  ): () => void;
  pauseAmbient(): void;
  resumeAmbient(): void;
  setAmbientOptions(options: AmbientOptions): void;
  setEncounter(encounter: Encounter): Promise<void>;
  startAmbient(): void;
  submitAmbient(): void;
}

Properties

activeAmbientId
string | null
The ID of the currently active ambient session, or null if no session is active.

Available Methods

Next Steps

Refer to the Functions to learn more about the available functions in the Suki Web SDK.