Patrik Åkerfeldt
10/18/2022, 1:13 PMCoroutineScope(dispatcher).launch {
client.webSocket(method = Get, host, port) {
val outboundRoutine = launch { outboundMessages() }
val inboundRoutine = launch { inboundMessages() }
outboundRoutine.join()
inboundRoutine.cancelAndJoin()
}
client.close()
<http://logger.info|logger.info>("Websocket closed")
}
client.webSocket
doesn't return anything. Is there some way to get the status code?Patrik Åkerfeldt
10/18/2022, 1:36 PMDefaultClientWebSocketSession.closeReason
. Somehow I overlooked it.