kvision / pl.treksoft.kvision.remote / KVRemoteAgent / webSocket

webSocket

(js) suspend inline fun <reified PAR1 : Any, reified PAR2 : Any> webSocket(noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit, noinline handler: suspend (SendChannel<PAR1>, ReceiveChannel<PAR2>) -> Unit): Unit

Executes defined web socket connection

(js) suspend inline fun <reified PAR1 : Any, reified PAR2 : Any> webSocket(noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<List<PAR2>>) -> Unit, noinline handler: suspend (SendChannel<PAR1>, ReceiveChannel<List<PAR2>>) -> Unit): Unit

Executes defined web socket connection returning list objects