Skip to main content
Instance methods enable your code to interact with or modify an active chat instance at runtime. They provide a way to programmatically control the behavior and state of the embedded chat component after it initializes based on user actions, application logic, or external events. The following tables list all supported instance methods, grouped by category.

Chat state

Chat widget state methods allow you to retrieve and modify the overall state and configuration of the chat widget.

Events

Event methods allow you to subscribe to, manage, and remove event listeners for the chat instance. These methods enable developers to respond to user actions or system events dynamically.

Message

Message methods allow you to manage and interact with the chat’s message flow in real time. These methods provide functionality for sending messages, navigating through the message list, and updating message history.

Security and identity

Security and identity methods help maintain secure communication and manage the lifecycle of the chat instance. These methods ensure that user authentication and session integrity are preserved during runtime.

User interface

User interface methods allow you to control and customize the visual and interactive aspects of the chat component at runtime. These methods help adapt the chat experience to different contexts and user preferences.

Complete example

The following example demonstrates how to configure events and instance methods in the embedded chat: