hello
09/06/2023, 1:56 PMfun main() {
GlobalScope.launch {
val client = HttpClient(CIO) {
install(WebSockets) {
pingInterval = 40_000
}
}
println("sendingxxx")
client.wss(host = "<http://example.com|example.com>", path = "/socket/websocket") {
}
}
embeddedServer(Netty, port = 8083, host = "0.0.0.0", module = Application::module)
.start(wait = true)
}
fun Application.module() {
configureSecurity()
configureSerialization()
configureRouting()
}