emit

fun emit(eventName: String, payload: Any?)

Fire a custom event; every on handler runs with the given payload.