on

fun on(event: String, callback: (String, dynamic, dynamic) -> Unit)
fun on(event: String, callback: (dynamic) -> Unit)

Sets up to execute the callback function after the trigger of the given event.