@twilio/flex-sdk
    Preparing search index...

    Function createClient

    • Creates a new FlexSdk Client instance.

      Parameters

      • token: string

        A flex token to initialize the client

      • OptionaluserOptions: DeepPartial<ClientOptions>

        A set of options to configure the client

      Returns Promise<Client>

      a Promise that resolves with the new Client instance

      import { createClient } from "@twilio/flex-sdk";

      const client = await createClient("SDK_TOKEN", {
      logger: {
      level: "debug"
      }
      });