Ananiya
05/29/2021, 1:53 PMonClick
on ktor Websocket
I have tried
mainScope.launch {
HttpClient(CIO){install(WebSockets)}.ws(/**configured*/){
withContext(Main){
view.onClick {
ioScope.launch {
launch{ send("msg") }.join()
}
}
}
}
Which hopefully doesn't work