sendEvent

fun sendEvent(eventType: String, extraData: Map<Any, Any> = emptyMap()): Call<ChatEvent>

Sends an event to all users watching the channel.

Return

Executable async Call responsible for sending an event.

Parameters

eventType

The event name.

extraData

The event payload.