Hello everybody :) I am using websockets in androi...
# ktor
o
Hello everybody :) I am using websockets in android app with okhttp engine and faced the problem that defaultRequest do not set cookie in websocket request. Do anybody know how to fix it and what can be the reason of it?
a
Unfortunately, I cannot reproduce your problem with the following configuration:
Copy code
val client = HttpClient(OkHttp) {
    install(DefaultRequest) {
        headers {
            cookie("name", "value")
        }
    }
    install(WebSockets) {}
}
o
That was mine mistake, sorry for disturbing