webSocket

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

Executes defined web socket connection

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

Executes defined web socket connection returning list objects