open class KVRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls.
KVRemoteAgent(serviceManager: KVServiceManager<T>)
Client side agent for JSON-RPC remote calls. |
val callAgent: CallAgent |
|
val serviceManager: KVServiceManager<T> |
suspend fun <RET : Any, T> call(function: suspend T.() -> RET): RET suspend fun <RET : Any, T> call(function: suspend T.() -> List<RET>): List<RET> suspend fun <PAR, RET : Any, T> call(function: suspend T.(PAR) -> RET, p: PAR): RET suspend fun <PAR, RET : Any, T> call(function: suspend T.(PAR) -> List<RET>, p: PAR): List<RET> suspend fun <PAR1, PAR2, RET : Any, T> call(function: suspend T.(PAR1, PAR2) -> RET, p1: PAR1, p2: PAR2): RET suspend fun <PAR1, PAR2, RET : Any, T> call(function: suspend T.(PAR1, PAR2) -> List<RET>, p1: PAR1, p2: PAR2): List<RET> suspend fun <PAR1, PAR2, PAR3, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3) -> RET, p1: PAR1, p2: PAR2, p3: PAR3): RET suspend fun <PAR1, PAR2, PAR3, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3) -> List<RET>, p1: PAR1, p2: PAR2, p3: PAR3): List<RET> suspend fun <PAR1, PAR2, PAR3, PAR4, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4): RET suspend fun <PAR1, PAR2, PAR3, PAR4, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> List<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4): List<RET> suspend fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5): RET suspend fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET : Any, T> call(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> List<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5): List<RET>
Executes defined call to a remote web service. |
|
suspend fun <PAR1 : Any, PAR2 : Any> webSocket(function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit, handler: suspend (<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit): Unit
Executes defined web socket connection suspend fun <PAR1 : Any, PAR2 : Any> webSocket(function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><List<PAR2>>) -> Unit, handler: suspend (<ERROR CLASS><PAR1>, <ERROR CLASS><List<PAR2>>) -> Unit): Unit
Executes defined web socket connection returning list objects |
open fun findEnumValue(kClass: KClass<Any>, value: String): Any? |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |