call

fun call(method: String, params: List<Any?>?, timeoutInMs: Int): String?

Parameters

timeoutInMs

timeout if the connection is IDLE for this time and an outstanding request is pending (so this is NOT the wall clock time for this call to abort, unless you have no other activity on the channel)


fun call(method: String, params: List<Any?>?, response: (String?) -> Unit): Int