АО
Size: a a a
AE
AE
AE
AE
АО
АО
AE
АО
АО
AY
SZ
AY
SZ
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()
}
АО
KA
КР
BP
КР