watch
fun <T> CommonFlow<T>.watch(stream: (T) -> Unit, error: (ClientException) -> Unit, scope: CoroutineScope = ContextScope.get(DispatchersProvider.Default)): CommonFlow.Job
Another way to consume common flows for JS ,
Parameters
stream
the flow data
error
in case an issue happen while collecting data this call back will be invoked