trigger
abstract fun trigger(event: ChatEvent<*>, listener: ChatEventHandler.OnEventSentListener? = null, errorListener: ChatEventHandler.OnEventErrorListener? = null)
Sends an event to server without further delays from background thread. If sending of the event fails, the event is considered consumed anyway.
If the event is sent to the server (not to be confused with processed by the server), the listener is invoked (from background thread).
Parameters
event
ChatEvent subclass which generates an event model.
listener
nullable listener if the client wants to know when it was sent.
errorListener
An optional listener for errors encountered when handling the event.