listen

fun listen(type: String): Flow<CustomEvent>

Listen to events from JS. Cancelling collection will remove the listener in JS.