trigger
abstract fun trigger(event: ChatThreadEvent, listener: ChatThreadEventHandler.OnEventSentListener? = null, errorListener: ChatThreadEventHandler.OnEventErrorListener? = null)
Sends an event to server without further delays. 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.
Parameters
event
ChatThreadEvent subclass which generates an event model.
listener
nullable listener if the client wants to know when it was sent.
errorListener
An optional listener if the client wants to know about errors encountered when handling the event.