open class KVRemoteAgent<T : Any> : RemoteAgent
Client side agent for JSON-RPC remote calls.
(js)
<init> |
Client side agent for JSON-RPC remote calls. KVRemoteAgent(serviceManager: KVServiceMgr<T>) |
(js)
callAgent |
val callAgent: CallAgent |
(js)
serviceManager |
val serviceManager: KVServiceMgr<T> |
(js)
call |
Executes defined call to a remote web service. 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> |
(js)
webSocket |
Executes defined web socket connection suspend fun <PAR1 : Any, PAR2 : Any> webSocket(function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, handler: suspend (SendChannel<PAR1>, ReceiveChannel<PAR2>) -> Unit): Unit
Executes defined web socket connection returning list objects suspend fun <PAR1 : Any, PAR2 : Any> webSocket(function: suspend T.(ReceiveChannel<PAR1>, SendChannel<List<PAR2>>) -> Unit, handler: suspend (SendChannel<PAR1>, ReceiveChannel<List<PAR2>>) -> Unit): Unit |