API Docs for: 2.0.17170.2
Show:

ui.chat.Config Class

Extends ui.UIConfig
Module: UI Chat
Parent Module: UI

Configuration for chat component

Properties

authInfo

Object
A {{#crossLink "ui.AuthInfo"}}{{/crossLink}} object that specifies the authentication information.

context

Object

Additional context to pass to the chat agent

modalities

Array

An array of modality objects (defined in the API Modalities module) returned by the Modalities API

rejoinUrl

String

Url to rejoin a previous chat session

theme

Object
A {{#crossLink "ui.theme.Config"}}{{/crossLink}} provides theme customization for a UI feature(The UI feature MUST support theme customization, otherwise this will be ignored)

uiInfo

Object
A {{#crossLink "ui.UIInfo"}}{{/crossLink}} object that describes how the UI component will be rendered.

Events

onClosed

Fired when chat session is closed

onError

Fired when an error occurs

Event Payload:

  • data Object
    An object that contains error information
    • message String

      Error message

onEstablished

Fires when the chat session is established

onMessage

Fired when a chat message is received

Event Payload:

  • data Object

    A data object that is passed through the event

    • sender Object

      Sender of the message

      • senderName String
        Sender's name

onQueued

Fires when chat request is queued

onQueueUpdated

Fires when chat queue status changes

Event Payload:

  • data Object

    A data object that is passed through the event

    • position Number

      Current queue position

onRejoinUrl

Fired when chat rejoin url is received

Event Payload:

  • data String

    Url to rejoin the chat

onSignInRedirect

Fired when popu window redirects to login page

onSignInRequest

Fires when user sign-in is requested

Event Payload:

  • data Array
    An array that contains information for supported sign-in types. i.e. [{ type: "MSA", policy: "MBI_SSL" }, { type: "ADD" }]

onTransferred

Fired when chat is transferred

onUnloaded

Fired when the ui component is closed