Skip to main content

Handling Events

When implementing the events handler WireEventsHandler your App will be notified when an event is received from the Websocket connection.

Below is a table of existing events that can be received and what are their purpose:

NameDescription
onTextMessageReceivedA Text message was received.
onAppAddedToConversationThe App has been added to a conversation.
onConversationDeletedA conversation that the App was part of, was deleted.
onAssetMessageReceivedAn Asset (file) was received.
onCompositeMessageReceivedA Composite message was received. Composite messages are a combination of text and buttons in a single message.
onButtonClickedA button action (button press/click) was received. From a composite message.
onButtonClickConfirmedSent from the SDK that it received the button action.
onPingReceivedAttention-getting message was received.
onLocationMessageReceivedA message containing location details (longitude, latitude).
onMessageDeletedWhen a message is deleted.
onMessageDeliveredWhen your message was DELIVERED or another user has read your message.
onTextMessageEditedAn existing message was edited.
onCompositeMessageEditedAn existing Composite message was edited.
onMessageReactionReceivedWhen a user has reacted to a message.
onInCallReactionReceivedReceived an emoji while in a call.
onInCallHandRaiseReceivedReceived the Hand Raise emoji while in a call.
onUserJoinedConversationWhen one or more users joined a conversation the App is part of.
onUserLeftConversationWhen one or more members leave or are removed from a conversation, including cases where the app itself is removed from the conversation.