EventCallback

interface EventCallback<T>

An interface representing a callback for handling events.

Parameters

T

The type of event.

Functions

Link copied to clipboard
abstract fun onFailure(throwable: Throwable)

Called when an event handling fails.

Link copied to clipboard
abstract fun onMessage(event: T)

Called when an event message is received.