Skip to main content
You can listen for emitted events by subscribing to them using the on method with your custom callback. For example, your function can be executed every time a message is received.

Availability updated

Indicates about a changed availability status.
Payload:

Chat deactivated

Indicates that the thread has been closed.
Payload:

Chat properties deleted

Indicates about deleted chat properties.
Payload:

Chat properties updated

Indicates about updated chat properties.
Payload:

Chat transferred

Indicates that a chat was transferred to a different group or an agent.
Payload:

Connected

Indicates that the connection has been established.
Payload: Greeting:

Connection recovered

Indicates that the SDK has recovered from an “unstable” connection state. It’s always preceded by the "connection_unstable" event.
This event doesn’t carry any additional payload.

Connection unstable

Indicates that the SDK has detected poor connection quality. It doesn’t mean that it has disconnected from the server just yet.
This event doesn’t carry any additional payload.

Customer ID

Indicates about the ID of the customer.
Payload:

Customer page updated

The customer moved to another page, for example by following a link on your website.
Payload:

Customer updated

Indicates that customer’s data was updated. Each property in payload is available only if it was updated.
Payload:

Disconnected

Indicates that SDK has disconnected from the server. The event provides the disconnection reason.
Payload:

Event properties deleted

Indicates about the event properties that were deleted.
Payload:

Event properties updated

Indicates about the event properties that were updated.
Payload:

Event updated

Indicates that an event was updated.
Payload:

Events marked as seen

Indicates that the events were seen by the particular user.
Payload:

Greeting accepted

Indicates about a greeting accepted by the customer.
Payload:

Greeting canceled

Indicates about a greeting canceled by the customer. It is also emitted when a new greeting automatically cancels the currently displayed one.
Payload:

Incoming chat

Indicates about a newly started chat thread. The payload contains the chat data structure and an object describing the new thread. If the chat was started with some initial events, they will be included in the thread object.
Payload:

Incoming event

Indicates about an incoming event sent to a chat. You should distinguish received events by their types.
Payload:

Incoming greeting

Indicates about an incoming greeting.
Payload:

Incoming rich message postback

Indicates about an incoming rich message postback.
Payload:

Incoming typing indicator

Indicates that one of the chat users is currently typing a message. The message hasn’t been sent yet. The payload contains the typing indicator object.
Payload:

Queue position updated

Indicates that the queue position has been updated.
Payload:

Thread properties deleted

Indicates about deleted thread properties.
Payload:

Thread properties updated

Indicates about updated thread properties.
Payload:

User added to chat

Indicates that a user was added to a chat.
Payload:

User data

Contains the information about the User data.

Customer user type

Agent user type

User removed from chat

Indicates that a user was removed from a chat.
Payload: