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

    Interface ClientEventsType

    Events that the Flex SDK client can emit.

    interface ClientEventsType {
        clientDestroyed: () => void;
        connectionStateChanged: (state: SdkConnectionState) => void;
        tokenAboutToExpire: (dateExpiring: Date) => void;
        tokenAutoUpdateFailed: () => void;
        tokenExpired: (dateExpired: Date) => void;
        tokenMaxLifetimeReached: (newTokenDateExpired: Date) => void;
        tokenUpdated: (token: string, refreshToken?: string) => void;
        [key: string]: (...args: any[]) => void;
    }

    Indexable

    • [key: string]: (...args: any[]) => void
    Index

    Properties

    clientDestroyed: () => void
    connectionStateChanged: (state: SdkConnectionState) => void
    tokenAboutToExpire: (dateExpiring: Date) => void

    Type Declaration

      • (dateExpiring: Date): void
      • Parameters

        • dateExpiring: Date

          The date at which the current token will expire.

        Returns void

    tokenAutoUpdateFailed: () => void
    tokenExpired: (dateExpired: Date) => void

    Type Declaration

      • (dateExpired: Date): void
      • Parameters

        • dateExpired: Date

          The date at which the token expired.

        Returns void

    tokenMaxLifetimeReached: (newTokenDateExpired: Date) => void
    tokenUpdated: (token: string, refreshToken?: string) => void