Any better (working) way to send continuous messag...
# android
a
Any better (working) way to send continuous message with
onClick
on
ktor Websocket
I have tried
Copy code
mainScope.launch {
   HttpClient(CIO){install(WebSockets)}.ws(/**configured*/){
      withContext(Main){
         view.onClick {
             ioScope.launch {
                 launch{ send("msg") }.join()
             }

         }
      }
}
Which hopefully doesn't work