Hierarchy

  • ChatSdk

Constructors

Properties

_contactCustomFieldsQueue: CustomFieldsMap = ...
_incomingChatEventMiddleware: ChatEventMiddleware = ...
_messageEmitter: IChatEventTarget
channelId: ChannelId = ''
customer: null | Customer = null
isAuthorizationEnabled: undefined | boolean
isLivechat: undefined | boolean
onError?: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

onRawEvent?: ((event) => void)

Type declaration

    • (event): void
    • Parameters

      Returns void

websocketClient: null | WebSocketClient = null

Methods

  • Returns CustomFieldsObject

  • Setup Environment endpoints

    Parameters

    Returns void

  • Returns Promise<void>

  • Get channel info Returns channel info like feature toggle status, translations, file upload restrictions, theme color settings etc.

    Returns Promise<ChannelInfo>

    ChannelInfo

    Throws

    ChatSDKError

  • Get list of available threads

    Returns Promise<null | ThreadView[]>

    list of threads

  • Parameters

    • error: unknown

    Returns void

  • Send the Offline Message

    Parameters

    Returns Promise<MessageSuccessEventData>

    success

    Throws

    SendMessageFailedError

    • This exception is thrown when a message fails to send. The error contains (error.data) a response from the backend with details.

Generated using TypeDoc