Skip to main content

onPingReceived

Triggered when someone sends a ping in a conversation.
A ping is a way to get someone's attention with animation and sound.

Received properties

The WireMessage.Ping has Base and Ephemeral message properties.

Sample usage

Ping back

override suspend fun onPingReceived(wireMessage: WireMessage.Ping) {
val ping = WireMessage.Ping.create(
conversationId = wireMessage.conversationId,
)
manager.sendMessageSuspending(message = ping)
}