SZ
Size: a a a
SZ
QH
BP
QH
LK
Caused by: io.ktor.client.call.NoTransformationFound: No transformation found: class io.ktor.client.engine.cio.CIOHttpResponse -> class io.ktor.client.features.websocket.ClientWebSocketSessionкод
at io.ktor.client.call.HttpClientCall.receive(HttpClientCall.kt:44)
fun main(args: Array<String>) = runBlocking {
val json = """{"command":"someCommandName","payload":{"value":101}}"""
val buffer = ByteBuffer.wrap( json.toByteArray() )
val frame = Frame.Binary(
fin = true,
buffer = buffer
)
val job = async {
val client = HttpClient(CIO).config {
install(WebSockets)
}
client.ws(port = 4567, path = "/post") {
send(frame)
}
}
job.await()
}
КР
КР
АО
QH
АО
А
А
А
BP
BV
BP
BV
BV
BP
BP