emit

fun emit(event: CustomEvent): Boolean

Send an event from Kotlin to the JS environment